Task Tool
Agent SDKDefinition
The built-in Agent SDK tool used to invoke a subagent. Takes a task description, available tools, and optional context. The subagent runs its own agentic loop in an isolated context and returns its final result. The primary mechanism for multi-agent delegation.
Example Usage
Use the Task tool to delegate 'search for recent papers on MCP' to a subagent with only the web_search tool available.