run_agent
Delegate complex multi-step tasks to specialized autonomous agents for independent execution, handling operations like code refactoring, test fixes, and systematic codebase analysis.
Instructions
Delegate complex, multi-step, or specialized tasks to an autonomous agent for independent execution with dedicated context (e.g., refactoring across multiple files, fixing all test failures, systematic codebase analysis, batch operations)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Identifier of the specialized agent to delegate the task to | |
| prompt | Yes | Task description or instructions for the agent to execute. When referencing file paths, use absolute paths to ensure proper file access. | |
| cwd | No | Working directory path for agent execution context (optional) | |
| extra_args | No | Additional configuration parameters for agent execution (optional) |
Input Schema (JSON Schema)
{
"properties": {
"agent": {
"description": "Identifier of the specialized agent to delegate the task to",
"type": "string"
},
"cwd": {
"description": "Working directory path for agent execution context (optional)",
"type": "string"
},
"extra_args": {
"description": "Additional configuration parameters for agent execution (optional)",
"items": {
"type": "string"
},
"type": "array"
},
"prompt": {
"description": "Task description or instructions for the agent to execute. When referencing file paths, use absolute paths to ensure proper file access.",
"type": "string"
}
},
"required": [
"agent",
"prompt"
],
"type": "object"
}