Attach sub-agent
attach_sub_agentBind another of this org's agents to this one, as a callable tool or a handoff target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How the sub-agent is wired: 'as_tool' (parent calls it like a tool) or 'handoff' (control transfers to it). | |
| agent_id | Yes | Target agent's id (from list_agents / create_agent / get_catalog view=agents). | |
| instruction | No | Optional guidance for the parent on when/how to use the sub-agent. | |
| sub_agent_id | Yes | Id of the org agent to bind (cannot be this agent itself or a platform agent). | |
| stream_to_client | No | Whether the sub-agent's output streams to the end user (default off). |