Attach a connected integration's tools
attach_integration_toolsAdd the tools of a CONNECTED integration (Gmail, Outlook, Google Drive, Microsoft 365, T2 WhatsApp, Msegat …) to an agent under their real, account-specific names. For a Blueprint-born agent pass the integration group_id (its tool list and workflow steps are used); otherwise a reference and optionally tools (base names) and, for a workflow, nodes. Idempotent. Refusal codes: integration_not_connected, integration_connect_your_own, integration_not_owner, integration_mismatch, integration_tools_unknown, integration_tools_unavailable, integration_group_unknown, integration_no_target, integration_not_personal. personal_mode (personal accounts only): 'running_user' makes the tools act as each running person's own connected account; 'fixed' keeps this one account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | No | Workflow only: the agent steps that get the tools (default: the group's steps). | |
| tools | No | Base tool names to attach (default: the group's list, else every tool of the integration). | |
| agent_id | Yes | Target agent's id (from list_agents / create_agent / get_catalog view=agents). | |
| group_id | No | Blueprint integration group id (e.g. 'mailbox'), from get_blueprint / the checklist. | |
| reference | No | Integration reference (e.g. 'gmail', 'outlook', 't2'); also picks one option of a group. | |
| personal_mode | No | Personal accounts only: 'running_user' = each person's own connected account, 'fixed' = always this account. Omit to keep the current mode. | |
| integration_id | No | A specific connected account; default the first connected one. |