Prepare a subagent package
get_subagent_contextPrepare a task-scoped worker context and contract for a fresh subagent, enabling delegation without switching your persona or spawning workers.
Instructions
Prepare a stateless task-scoped worker package without switching your persona.
Unknown arguments are rejected. Total original request limit: 48000 canonical
JSON characters, including unknown fields. Retain the returned
contract and your own persona; forward worker_context to a fresh native worker.
This tool does not spawn workers. The worker uses this role without another
activation or conversation footer/log, and returns exactly the JSON envelope.
Require status: prepared before spawning. For every returned or revised output,
call validate_subagent_result with YOUR retained contract and the unchanged
output. Require valid: true before accepting or integrating it, then assess
evidence/acceptance criteria yourself. Endpoint failure does not authorize an
unprepared worker or unvalidated result. Missing compact sources or an
insufficient mandatory-context budget return an error with no partial package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Required nonempty assignment; at most 4000 characters. | |
| scope | No | Up to 50 allowed areas/actions, each 1..4000 characters. | |
| context | No | Up to 50 relevant facts/references, each 1..4000 characters; not the whole transcript. References are not opened. | |
| task_id | No | Optional caller ID (1..128 letters, digits, underscore, dot, colon, hyphen); generated when omitted. | |
| non_goals | No | Up to 50 excluded tasks, each 1..4000 characters. | |
| agent_name | Yes | Required canonical existing persona name; at most 80 characters. | |
| attempt_id | No | Attempt ID in the same format as task_id; change for a new attempt. | 1 |
| max_skills | No | Maximum selected skills, integer 0..5; default 3. | |
| result_type | No | One of generic, review, implementation, research; fixed built-in result schema. | generic |
| max_implants | No | Maximum full-body implants, integer 0..2; default 0. | |
| artifact_manifest | No | Optional exact active task manifest returned by artifact_manifest_create. Pins hashes in the contract and adds automatic artifact_read instructions; contents are not inlined. Requires a valid workspace and the matching task ID. | |
| max_context_chars | No | Complete worker-context character budget, integer 2000..64000; default 16000. | |
| acceptance_criteria | Yes | Required 1..50 nonempty completion criteria, each at most 4000 characters; use a JSON array, not text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||