Connect an agent to a Wiro project
bind_agent_projectConnect a deployed agent to a Wiro project so it can run Wiro models without a key in chat. Preview the change first, then confirm to bind.
Instructions
Connect a deployed agent to a Wiro project, so it can run Wiro models, with no key in this chat. Without project_id it takes the project of this connection; project_id takes one from list_projects. Call it without confirm first: it shows the project, what it replaces, whether a running agent restarts and which wallet pays for the agent's model runs, and changes nothing. After the user agrees, repeat the call as its nextAction shows, with confirm: true. Connecting the same project again changes nothing and does not restart the agent; if the project's secret changed, restart the agent with control_agent. On a team agent this needs a team admin or the person who deployed it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false (default) only shows what would change. true connects the project. | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents. | |
| project_id | No | The id of a project, as a string, from list_projects. Leave it out for the project of this connection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| state | Yes | ||
| wallet | No | Which wallet pays for the model runs the agent starts. | |
| applied | No | 1 when the stored project changed, 0 when it was already this one. | |
| project | Yes | ||
| restart | No | scheduled: a running agent restarts with the project. none: nothing changed, or the agent is not running and reads it at its next start. failed: the project is saved, but the running agent needs control_agent restart. | |
| replaces | Yes | ||
| warnings | Yes | ||
| agentGuid | Yes | ||
| nextAction | No |