Connect an agent connector
connect_agent_connectorConnect an external service connector to a deployed agent so it gains that service's tools, using saved API keys or a user-approved sign-in link.
Instructions
Connect a Connector (an outside service from list_agent_connectors) to a deployed agent, which then gets its tools. action connect: a connector that takes a key saves the values in values and connects at once; the result never shows them again. A sign-in connector returns a link that the user must open in their own browser and approve within 10 minutes; never open it for them. A sign-in with the service's own OAuth uses the user's own app there: its keys (such as a client id and secret) go in values with the same call. A connector that offers both takes mode sign_in or key. The wiro connector runs with a Wiro project and gives the agent only Wiro's model, task and file upload tools, plus read-only docs search and playbooks: connecting it takes project_id from list_projects (or the project of this connection) and makes that project the agent's own Wiro project, as bind_agent_project does, so its calls count as the agent's own (its spend limits and Model Access rules apply, and account, agent and billing calls are refused). It first shows the project, what it replaces, which wallet pays and the scheduled tasks and custom skills the project turns on. A call with required values missing sends nothing and lists what to ask for, with where each value comes from. action status: whether the sign-in finished (wait_seconds waits for the user). Connecting a connector that is connected now replaces that connection, and a connector that runs with a Wiro project always shows its project first: both take confirm: true after the user agreed. A running agent gets most changes without a restart; a few restart it, which takes a minute or two. Where a connector has account choices, such as the advertisers a TikTok Ads sign-in reaches, set_agent_connector_accounts lists and saves the accounts it may act on once it is connected; accounts saves ids the user already knows with this call. disconnect_agent_connector removes a connection. The person who deployed the agent or a team admin of its team can connect. Keys go only in values, never in a message to an agent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_guid": "<agent_guid>",
"connector": "<connector>"
},
"name": "connect_agent_connector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | connect, for a connector that connects either way: sign_in (the default) or key. | |
| action | No | connect (default) connects or starts the sign-in, status checks a sign-in. | connect |
| values | No | connect: the Connect card's values by field name, as list_agent_connectors shows them, for example {"apikey": "..."}. A json field takes the JSON value or its text. Values saved before are kept unless sent again; null or "" clears an optional one. Never echoed back. | |
| confirm | No | connect: true to replace a working connection, or to connect a connector that runs with a Wiro project (it binds the project to the agent), after the user agreed. | |
| accounts | No | connect: the accounts the connection may act on, {account key: [ids]}, saved with it as given; a sign-in saves them once it finishes. Use it for ids the user already knows, such as TikTok Ads advertiser ids under "advertisers", or where the connector's setup steps name an account key. Otherwise choose them once connected with set_agent_connector_accounts, which lists the accounts the connection reaches and takes only those. A connector with account choices takes only their keys. Leave it out to keep the accounts saved before. | |
| connector | Yes | The connector's slug, from list_agent_connectors, such as "serper" or "google-ads". | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents. | |
| project_id | No | connect, for a connector that runs with a Wiro project (wiro): the project's id from list_projects, which becomes the agent's own Wiro project. Leave it out for the project of this connection. | |
| redirect_url | No | connect, for a sign-in: where the browser goes after approving, an https address or a local one on the user's own machine (http://localhost or http://127.0.0.1). Leave it out for Wiro's own page, which says how it went. | |
| wait_seconds | No | status: how long to wait for the sign-in to finish, 0 to 3600 seconds (default 0, a single check). | |
| since_connected_at | No | status: the since_connected_at value from connect's nextAction, so the connection from before is not taken for the new one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| state | Yes | ||
| title | Yes | ||
| action | Yes | ||
| fields | No | setup_needed: the values to ask the user for, with where each one comes from. | |
| applied | No | 1 when the saved connection changed, 0 when it already held this. | |
| message | Yes | ||
| missing | No | setup_needed: the names of the required values that are missing. | |
| project | No | A connector that runs with a Wiro project (the wiro connector): the project connecting it binds to the agent as its own Wiro project, which the agent's video and voice skills use too. | |
| restart | No | live: the running agent got the connector with no restart. scheduled: a running agent restarts to load the connector. none: nothing to load, or the agent is not running. failed: it is saved, but a running agent needs control_agent restart. | |
| agentGuid | Yes | ||
| connector | Yes | ||
| connection | No | ||
| nextAction | No | ||
| authorizeUrl | No | The sign-in link for the user to open in their own browser. Never open it for them. | |
| replacesProject | No | The agent's Wiro project now, which the connect replaces. Left out when it has none, or when it is the same project. | |
| expiresInSeconds | No |