convert_fountain
Convert screenplay blocks to Fountain text and parse Fountain back into typed blocks for format_screenplay, handling scene headings, dialogue, transitions, notes, and CJK fallback.
Instructions
Convert between Narracore screenplay blocks and Fountain (the plain-text screenplay interchange format). direction="to_fountain": screenplay (input_format="text" or "blocks") → Fountain text (Latin content upper-cased per convention, CJK preserved verbatim; notes as [[…]]). direction="from_fountain": Fountain text → typed blocks you can pass straight to format_screenplay (input_format="blocks") — supports scene headings (INT/EXT/EST/I/E), character cues with (V.O.)-style extensions (extension becomes the delivery hint), parentheticals, dialogue, TO: transitions, > forced transitions, . forced action, [[notes]]; boneyard /…/ is stripped and reported, title-page keys and # section headers are skipped with warnings; mostly-Chinese content falls back to the Chinese screenplay parser (Fountain rules target Latin scripts). 剧本块与 Fountain 格式互转。Part of the Narracore toolkit — free, local, no account; long-form co-writing at narracore.cn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | to_fountain only: raw screenplay text (input_format="text") | |
| blocks | No | to_fountain only: typed blocks (input_format="blocks") | |
| fountain | No | from_fountain only: the Fountain source text | |
| direction | No | Required, one of to_fountain | from_fountain: to_fountain = screenplay → Fountain text; from_fountain = Fountain text → typed blocks. | |
| request_id | No | Trace id (optional) | |
| input_format | No | to_fountain only: screenplay source format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | No | ||
| stats | No | ||
| blocks | No | ||
| reason | No | ||
| message | No | ||
| fountain | No | ||
| recovery | No | ||
| warnings | No | ||
| direction | No | ||
| next_step | No | ||
| request_id | No | ||
| diagnostics | No | ||
| contract_version | No |