build_handoff
Creates a role-specific handoff package with shared context, invariants, next action, tasks, and reports, capping size to a token budget by compressing history while preserving critical items.
Instructions
Build a role-specific handoff package (shared Context, invariants, next action, task and reports), optionally fitted to a token budget. Over budget, bounded history lists (decisions, agent_results_awaiting_refinement) are compressed oldest-first and budget_omitted lists what was cut; invariants, source_document_refs, approved_plan, task and reports are never truncated. Read-only. get_context returns the same package without a budget, so use this tool only when you need to cap its size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role the handoff is for: PM (default) or any agent role such as SA, SD, RD, SD/RD, REVIEW, SR, AR, SEC, QA or SW. | PM |
| task_id | No | Task id to scope the call to. Omit it for the tool's default scope. | |
| project_id | Yes | Registered project id, as returned by list_projects. | |
| token_budget | No | Estimated token ceiling (about 3 characters per token). Omit for no limit. When set, available skills and long history lists are shortened to fit; budget_exceeded is true if the protected parts alone are larger. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||