agents_set_integration
Enable or disable a connected workspace integration on an AI agent — this controls which ext_ integration tools the agent (and its sandboxed workbench runs) may call. Use integrations_list to get the workspace_integration_id.
When enabling with no explicit denied_tools, WRITE-class tools are auto-disabled by default (read tools stay on); pass denied_tools=[] to force-allow everything, or a list of ext slugs / bare tool names to block specific ones. Idempotent upsert — safe to call repeatedly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | True to enable the integration on this agent, False to disable | |
| agent_id | Yes | ID of the agent to configure | |
| denied_tools | No | Optional explicit block-list of tool names to deny (ext slugs or bare names). Omit to auto-deny WRITE-class tools on first enable; pass [] to allow all. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| workspace_integration_id | Yes | ID of the connected integration (from integrations_list) |