Expand description
Task Tool for Spawning Subagents
The Task tool allows the main agent to delegate specialized tasks to focused child agents (subagents). Each subagent runs in an isolated child session with restricted permissions.
§Usage
{
"agent": "explore",
"description": "Find authentication code",
"prompt": "Search for files related to user authentication..."
}Structs§
- Parallel
Task Params - Parameters for parallel task execution
- Parallel
Task Tool - ParallelTaskTool allows the LLM to fan-out multiple subagent tasks concurrently.
- RunTeam
Params - Parameters for team-based task execution
- RunTeam
Tool - RunTeamTool allows the LLM to trigger the Lead→Worker→Reviewer team workflow.
- Task
Executor - Task executor for running subagent tasks
- Task
Params - Task tool parameters
- Task
Result - Task tool result
- Task
Tool - TaskTool wraps TaskExecutor as a Tool for registration in ToolExecutor. This allows the LLM to delegate tasks to subagents via the standard tool interface.
Functions§
- parallel_
task_ params_ schema - Get the JSON schema for ParallelTaskParams
- run_
team_ params_ schema - Get the JSON schema for RunTeamParams
- task_
params_ schema - Get the JSON schema for TaskParams