agent_task
Execute multi-step autonomous tasks for code analysis, security scanning, and workspace automation using local LLMs. Configure execution parameters for complex workflows.
Instructions
Autonomous multi-step task runner. Use readOnly for analysis. Defaults: maxSteps=50, maxActionsPerStep=100; use async for long tasks.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "Using chrome-devtools MCP, open https://github.com and take a full-page screenshot to .mcp_cache/agent_scenarios/github.png.",
"options": {
"allowMcpServers": [
"chrome-devtools"
],
"readOnly": true
}
},
"name": "agent_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | High-level task to execute. Required unless "prompt" is provided. | |
| prompt | No | Alias for "task". Use either task or prompt (task takes precedence). | |
| options | No | Optional execution controls. Top-level aliases (contextRoot, readOnly, async, etc.) also supported for backward compatibility. ⚠️ Higher values = longer execution time. Default timeout is 5 minutes. |