{
"id": "tool-descriptor:agent",
"_kind": "ToolDescriptor",
"_file": "extensions/tool-descriptors/agent.yaml",
"_cluster": "extensions",
"attributes": {
"schema": "{}",
"displayName": "Agent (Task)",
"description": "Spawn a sub-agent (general-purpose Task) with its own prompt.\nReturns the sub-agent's final message. Equivalent to Claude\nCode's Task tool.\n",
"inputSchema": {
"type": "object",
"required": [
"description",
"prompt",
"subagent_type"
],
"properties": {
"description": {
"type": "string",
"description": "Short (3-5 word) task description"
},
"prompt": {
"type": "string",
"description": "Full task prompt for the sub-agent"
},
"subagent_type": {
"type": "string",
"description": "Configured sub-agent type / role"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"finalMessage": {
"type": "string"
}
}
},
"mode": "normal",
"streamable": false
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-runtime-impl:a5c.runtime@current",
"to": "tool-descriptor:agent",
"kind": "bundles",
"attributes": {}
},
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "tool-descriptor:agent",
"kind": "bundles",
"attributes": {}
},
{
"from": "plugin:example-native-claude",
"to": "tool-descriptor:agent",
"kind": "contains_tool_descriptor",
"attributes": {}
},
{
"from": "subagent:claude-code.explore",
"to": "tool-descriptor:agent",
"kind": "dispatched_via_tool",
"attributes": {}
},
{
"from": "subagent:claude-code.general-purpose",
"to": "tool-descriptor:agent",
"kind": "dispatched_via_tool",
"attributes": {}
},
{
"from": "subagent:claude-code.plan",
"to": "tool-descriptor:agent",
"kind": "dispatched_via_tool",
"attributes": {}
},
{
"from": "child-session:claude-code-task-001",
"to": "tool-descriptor:agent",
"kind": "invoking_tool",
"attributes": {}
},
{
"from": "child-session:claude-code-plan-mode-session",
"to": "tool-descriptor:agent",
"kind": "invoking_tool",
"attributes": {}
}
]
}