Validate a branching story graph
validate_story_graphValidate branching-story JSON scene graphs by checking schema, missing choice targets, unreachable scenes, dead-end loops, and invalid guard predicates, returning issue codes and pass/fail results.
Instructions
Validate a branching-story-kit JSON scene graph. Checks the schema, detects missing choice targets, unreachable scenes, dead-end loops and invalid guard predicates, and returns structured diagnostics with issue codes, stats and a pass/fail verdict.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_story_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| story | No | A branching-story-kit v1 story graph: {id?, title?, startScene (or legacy start), initialState?, scenes}. Scenes map id -> {title, body, ending?, choices?}. Choices carry label, next (or href), optional requires {key: minimum} and optional effects {key: value | {op: set|add|append|delete, value}}. | |
| scenes | No | Alternative to `story`: the scenes map. | |
| startScene | No | Alternative to `story`: the start scene id. | |
| initialState | No | Alternative to `story`: the initial state vector. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||