get_workspace_context
Packs a workspace record, visible channels sorted by name, a page of readable threads with messages, references and FSM transitions, plus the glossary into one prompt-ready context.
Instructions
Pack a workspace for one prompt: the workspace record, the channels you can see (public ones, and private ones you belong to) sorted by name, a page of live threads (oldest first, only ones you can read) each with its messages, references and FSM transitions, and the glossary once at the top level. thread_limit sets the page size (default 10, max 50), and next_thread_cursor, when present, is passed back as thread_cursor for the next page. Use get_thread_context for a single thread with edits and replay options, and list_threads or find_threads to locate threads without packing them. Requires workspace:read.
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": {
"workspace_id": "<workspace_id>"
},
"name": "get_workspace_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_bytes | No | Byte cap applied to each nested thread pack: a thread whose pack is larger has its middle messages elided behind a marker. Minimum 1; omit for no cap. | |
| thread_limit | No | Number of threads in the page, 1 to 50. Default 10. | |
| token_budget | No | Cap each nested thread's message page by estimated tokens; the opening message and the recent tail are kept and the middle is folded into an elision marker (see get_thread_context). Minimum 1; omit to cap by message count only. | |
| workspace_id | Yes | UUID of your own workspace (whoami returns it). A different workspace is refused. | |
| message_limit | No | Messages packed per thread, 1 to 500. Default 100. | |
| thread_cursor | No | The next_thread_cursor from the previous page, to read the threads after it. Omit for the first page. | |
| include_glossary | No | Include the workspace glossary once at the top level. Defaults to true; the key is omitted when the workspace has no terms. Set false to drop it. | |
| transition_limit | No | FSM transitions packed per thread, 1 to 200. Default 50. |