Get context plan
swarm_get_context_planPreview which authorized Space resources fit a proposed prompt before sending it to an agent. Supply composer_text; explicit references are required inputs that must fit token_budget. Returns selection, coverage and source revision without saving content or calling a model. Use swarm_preview_handoff for cited Markdown from selected sources.
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": {
"composer_text": "<composer_text>"
},
"name": "swarm_get_context_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | No | Space ID from swarm_list_spaces; omit if sole. | |
| objective | No | Purpose guiding context selection within your access. | |
| token_budget | No | Approximate token ceiling, 1-32000; default 4000. Explicit sources must fit or the preview fails. | |
| composer_text | Yes | Prompt to plan context for; never submitted for execution. | |
| explicit_resource_refs | No | Required references, such as artifact:<id>, from authorized reads. | |
| observed_source_revision | No | source_revision from the latest preview; stale publishing fails. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||