Get story context
get_story_contextRetrieve a story’s current branch, characters, scene setup, summaries, revision, and a bounded turn window for inspection; optionally include incomplete turns without changing saved state.
Instructions
Return the selected branch, character assignments, stored profiles, scene setup, summaries, the story revision, and a bounded window of turns. By default the window contains only completed turns; set include_incomplete=true to also see drafts, cancellations and failures. The window reports truncation flags and a cursor for older turns. Read-only: it never changes saved state.
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": {
"story_id": "<story_id>"
},
"name": "get_story_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| story_id | Yes | ||
| branch_id | No | ||
| full_text | No | ||
| turn_limit | No | ||
| before_cursor | No | ||
| include_incomplete | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| setup | Yes | ||
| title | Yes | ||
| turns | Yes | ||
| window | Yes | ||
| branches | Yes | ||
| profiles | Yes | ||
| revision | Yes | ||
| story_id | Yes | ||
| summaries | Yes | ||
| user_role | Yes | Character the user plays. Stored assignment, not behaviour. | |
| created_at | Yes | ||
| updated_at | Yes | ||
| active_branch | Yes | ||
| assistant_role | Yes | Character the assistant plays. Stored assignment, not behaviour. | |
| saved_state_note | Yes | Reminder that this is stored scene state. Dialogue that was only spoken in the client's conversation and never passed to append_turn is not in this result. |