Set agent credentials
set_agent_credentialsSave API keys, bot tokens, account IDs, and OAuth app keys to a deployed agent, or inspect a credential's required fields first. Values are validated before writing and restart the agent to load them.
Instructions
Save credential fields on a deployed agent: API keys, bot tokens, account IDs, allow lists, your own OAuth app keys, or the token for a browser-free connection. Call with only credential (no fields) to see that credential's field keys, formats, which are required, how it connects, and what is already set on this agent; nothing is written then. Skip that call when list_agent_skills with name already showed the fields. Then call with fields. Every field is checked before anything is written; unknown or Wiro-managed fields are refused. A key file, such as a Google service account JSON or an App Store .p8 key, takes the file's text, never a link: never ask for a public link to a key (the user can also upload it on the agent's page in the Wiro dashboard). Other file fields take a public URL and the file is uploaded. Values are never echoed back. A running agent restarts to load the values. Channels such as Telegram, Slack and Discord turn on by themselves once all their required fields are set, and turn off when one is cleared. Saving a credential turns on the scheduled tasks that need it; turn off any you do not want. Sign-in integrations (such as Google Ads, YouTube, Meta and HubSpot) are then connected with connect_agent_oauth; Gmail, Google Calendar and Google Drive are not sign-ins and are set here. Only save a Wiro project API key (credential "wiro") that the user gave you: model runs are billed to its wallet. On a team agent this needs a team admin or the person who deployed it; other team members can read the agent with get_my_agent and message it, so do not ask them for values they cannot save. The agents playbook (get_playbook) has the full setup walkthrough.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Fields to save. Send the fields of one credential together. | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents. | |
| credential | No | Describe mode: a credential key such as "telegram" or "google-ads". Used when fields is empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| notes | Yes | ||
| errors | No | ||
| applied | No | ||
| channels | No | ||
| agentGuid | Yes | ||
| credential | No | ||
| nextAction | No | ||
| agentStatus | No | ||
| credentials | No | ||
| uploadedFiles | No |