analyze_screenplay
Compute deterministic screenplay statistics: scene list with structured headings, per-scene word count, dialogue ratio, action density, and a character dialogue-share table.
Instructions
Deterministic screenplay statistics from the Narracore analyzer (analyzer_version 1.0, same rules as narracore.cn): a scene list with structured scene headings (scene number / location / time of day / INT-EXT parsed from each heading), per-scene word count, dialogue ratio and action density, plus a character table (cue count, scenes present, dialogue lines, dialogue chars, share of dialogue). Accepts the same inputs as format_screenplay (input_format="text" or "blocks") — pass the SAME screenplay to both tools. When chaining tools, pass back the blocks you received (structured), not the formatted plain text. 剧本确定性统计:场景清单(结构化场景头)、逐场字数/对白占比/动作密度、角色戏份表。Part of the Narracore toolkit — free, local, no account; long-form co-writing at narracore.cn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw screenplay text (required when input_format="text") | |
| blocks | No | Typed blocks (required when input_format="blocks") | |
| request_id | No | Trace id (optional) | |
| input_format | No | text (default): line-based screenplay text. blocks: typed blocks (e.g. the blocks returned by format_screenplay). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | No | ||
| reason | No | ||
| scenes | No | ||
| totals | No | ||
| message | No | ||
| recovery | No | ||
| next_step | No | ||
| characters | No | ||
| request_id | No | ||
| diagnostics | No | ||
| analyzer_version | No | ||
| contract_version | No | ||
| validation_status | No |