Allocate task
task_allocateAllocate a policy-checked work package and get a task_id to pass into a child agent prompt, enforcing role, budget, and done criteria before spawning a subagent.
Instructions
Allocate a policy-checked work package before native spawn_agent. Put the returned task_id into the child's prompt. Root role depends on mission.strategy: fanout/director_plan/pipeline require Terra; direct allows one root Luna. fanout Terra objective max 2000 characters.
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": {
"missionId": "<missionId>",
"objective": "<objective>",
"role": "<role>",
"model": "<model>",
"reasoningEffort": "<reasoningEffort>",
"capabilityPack": "<capabilityPack>",
"doneCriteria": "<doneCriteria>",
"risk": "<risk>",
"actorId": "<actorId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "task_allocate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | Yes | ||
| role | Yes | ||
| model | Yes | ||
| budget | No | ||
| actorId | Yes | ||
| maxEffort | No | ||
| missionId | Yes | ||
| objective | Yes | ||
| allowedTools | No | ||
| dependencies | No | ||
| doneCriteria | Yes | ||
| outputSchema | No | ||
| parentTaskId | No | ||
| capabilityPack | Yes | ||
| idempotencyKey | Yes | ||
| reasoningEffort | Yes | ||
| parentLeaseToken | No | ||
| inputArtifactRefs | No | ||
| expectedParentVersion | No |