Change a connector's permissions
set_agent_connector_permissionsControl what a deployed agent may do with a connector: set allow, ask or block per action or category for chat and autopilot, previewing changes before saving.
Instructions
Change what a deployed agent may do with one of its Connectors without asking. Set a group (categories: read is Read-only, create is Create and send, change is Change and delete) or one action (tools, by its name from get_agent_connector_permissions), each in two columns: chat and autopilot, each allow, ask or block. Chat is when someone is talking to the agent: the Wiro web chat, a message sent with an API key or from this server, or an authorized Telegram, Slack or Discord chat. Autopilot is its scheduled tasks and the work before and after a voice call; any other work it does on its own, such as sub-agents and work in the background, takes the stricter of Chat and Autopilot for each action. Allow runs an action, Ask waits for a person to approve it in the chat, and Block never runs it; an action blocked in both is not shown to the agent at all. null removes a setting: a group's column goes back to its default, an action's to its group's. Setting a group's column also clears that column from its actions' own settings. reset: true first puts every group and action back to the defaults. By default, read-only actions run, and Create and send and Change and delete ask first in Chat and run in Autopilot. Call it without confirm first: it shows what changes for the agent, and saves nothing. After the user agrees, repeat the call as its nextAction shows, with confirm: true and summary_id; a confirm saves only the change its summary showed. A running agent gets most changes without a restart; a few restart it, which takes a minute or two. Only the person who deployed the agent or a team admin of its team can change them. Always allow on an approval card (answer_agent_approval) also sets an action to Allow.
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": "set_agent_connector_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | true: every group and action goes back to its default first, then categories and tools apply. | |
| tools | No | Action values by the action's name, such as {"delete_post": {"chat": "block"}}. | |
| confirm | No | Set true only by repeating the change summary's nextAction, after the user approved that summary. | |
| connector | Yes | The connected connector's slug, such as "wordpress". | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents. | |
| categories | No | Group values, such as {"create": {"chat": "allow"}}. | |
| summary_id | No | From the change summary's nextAction: the id of the change the user saw. Never set it yourself. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hides | No | Actions the change blocks in both columns, so the agent stops seeing them. | |
| shows | No | Actions blocked in both columns now that the agent sees again after the change. | |
| title | Yes | ||
| applied | No | saved: 1 when Wiro changed the permissions, 0 when they were already this. | |
| changes | Yes | Every value the agent works with that the change moves, by action and column. | |
| message | Yes | ||
| outcome | Yes | summary: what the change does, and nothing is saved yet. saved: Wiro saved it. no_change: the permissions are already this. | |
| restart | No | saved: live (they apply to the running agent's next action, with no restart), scheduled (the running agent restarts to use them), none, or failed (they apply at its next start). | |
| agentGuid | Yes | ||
| connector | Yes | ||
| nextAction | No | ||
| permissions | No | saved: the permissions as they are now. |