Store an API credential in the vault, call an external endpoint using it, then delete the credential once the task is done.
Store the external API's credential under the agent's handle.
vault_store({"handle": "my-agent", "name": "example", "value": {}})Call the external API using the stored credential, never exposing it in the prompt.
vault_call_api({"handle": "my-agent", "method": "GET", "url": "https://example.com", "auth": {}})Delete the credential once the task no longer needs it.
vault_delete({"handle": "my-agent", "name": "example"})