pi_delegate
Delegate coding tasks to a Pi sub-agent via MCP with named sessions, choosing synchronous or asynchronous execution to match the task's needs.
Instructions
委派任务给 Pi 子代理(默认 async)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"session": "<session>"
},
"name": "pi_delegate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| goal | No | ||
| mode | No | ||
| prompt | Yes | ||
| session | Yes | ||
| constraints | No | ||
| runTimeoutMs | No | ||
| allowUnknownTools | No |