Narracore Screenplay Formatter

v1.4.0
cn.narracore/screenplay-formatter Checked 2 days ago Published 2 months ago

Screenplay, film and story toolkit over MCP: PDF formatting, stats, diagnosis, video prompts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

format_screenplay Format screenplay (blocks + PDF)

Convert raw or loosely formatted screenplay text (Chinese, English, or mixed — including Japanese broadcast-drama format and Chinese colon-style dialogue scripts) into professionally structured screenplay blocks and a print-ready PDF on a fixed typewriter character grid identical to narracore.cn. Use it for screenplay formatting, import, or producing a shareable screenplay PDF — NOT for general prose rewriting or story editing. INPUT (contract_version 3) — two modes: • input_format="text" (default): line-based screenplay text, one element per line — scene headings ("INT. LAB - DAY",…

ParameterTypeDescription
blocksarrayTyped blocks (required when input_format="blocks")
content_languagestringContent language (default: auto-detect)
coverobjectCover page fields — any field present adds a cover page (not counted in page numbers); date defaults to today (UTC) when omitted; anonymous=true renders only title+date (competition blind-review con…
dialogue_breaksbooleanUS submission convention for dialogue spanning a page break: (MORE) at the bottom of the page and SPEAKER (CONT'D) at the top of the next. Default false
footerobjectExplicit footer (centered below the text box); same value resolution as header
headerobjectExplicit running header (overrides the default page-number line): field values come from cover; missing fields are skipped; page_number renders N/M at the right edge
includestringReceipt body shape (default both): blocks=typed blocks only, plain_text=formatted text only — halves the receipt for large screenplays; validate_only always echoes blocks
input_formatstringtext (default): line-based screenplay text parsed server-side. blocks: submit typed blocks directly — validated and rendered as-is, never re-classified.
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — free daily quota works without one)
outputstringpdf_and_blocks (default) / blocks_only / validate_only (free structure check, no render)
paperstringPaper override for us/uk/fr: "letter" / "a4" / "a4_landscape" / "b4" (default follows style: us → letter, uk/fr → a4). Grid and page count are identical across papers. Vertical ja_* styles use a f…
request_idstringIdempotency key (optional)
stylestringSubmission style: "us" (default — US Letter) / "uk" (A4, BBC-style margins, scene numbers on both sides) / "fr" (A4, French-style centered dialogue column) / vertical Japanese manuscript sheets "ja_…
textstringRaw screenplay text, one element per line (required when input_format="text")

analyze_screenplay Screenplay statistics

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, a character table (cue count, scenes present, dialogue lines, dialogue chars, share of dialogue), and totals.genko_yoshi manuscript-sheet counts for Japanese competitions (400-character 20×20, 200-character 20×10, Kido-style 20×40 — always confirm the current rules of the competition you are entering)…

ParameterTypeDescription
blocksarrayTyped blocks (required when input_format="blocks")
input_formatstringtext (default): line-based screenplay text. blocks: typed blocks (e.g. the blocks returned by format_screenplay).
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — free daily quota works without one)
request_idstringIdempotency key (optional)
textstringRaw screenplay text (required when input_format="text")

diagnose_scenes Scene shootability diagnosis (AI cites, server scores)

Scene-level "shootability" diagnosis for a screenplay, using the same ai-2.0 rules as narracore.cn: YOU (the calling AI) cite the evidence, the server validates it and computes the score — no LLM on the server. Two steps: (1) mode="material" (FREE) returns each scene as a numbered block list ([n] [type] text), the strict findings JSON schema, and 6 problem types (abstract_psychology, literary_summary, unfilmable_information, unclear_space, weak_visible_action, unplayable_direction); (2) after analyzing the material yourself, call mode="score" with findings=[{scene, summary, problems:[{type,…

ParameterTypeDescription
blocksarray
findingsarrayscore mode only: your per-scene findings
input_formatstringtext (default): line-based screenplay text. blocks: typed blocks (e.g. from format_screenplay).
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — free daily quota works without one)
modestringRequired, one of material | score: material (free) returns the numbered scene material + schema; score submits findings for validation and scoring.
request_idstringIdempotency key (optional)
scenesarraymaterial mode only: scene numbers (1-based) to render; default all
textstring

convert_fountain Fountain ⇄ blocks converter

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, .…

ParameterTypeDescription
blocksarrayto_fountain only: typed blocks (input_format="blocks")
directionstringRequired, one of to_fountain | from_fountain: to_fountain = screenplay → Fountain text; from_fountain = Fountain text → typed blocks.
fountainstringfrom_fountain only: the Fountain source text
input_formatstringto_fountain only: screenplay source format
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — free daily quota works without one)
request_idstringIdempotency key (optional)
textstringto_fountain only: raw screenplay text (input_format="text")

render_bilingual_pdf Bilingual side-by-side screenplay PDF

Bilingual side-by-side screenplay PDF: submit the ORIGINAL screenplay (same inputs as format_screenplay) plus "translation" — the translated screenplay text you or your AI prepared. Both versions are typeset on the same fixed typewriter grids (Chinese 33×38 / English 61×55) side by side on A3 landscape pages, aligned scene by scene (each scene starts on a fresh page with both versions at the top). The two sides MUST have the SAME number of scene headings — a mismatch returns a scene-by-scene comparison to fix first. The translation is user-provided; this tool typesets, it never translate…

ParameterTypeDescription
translation *stringTranslated screenplay text (user-provided) — must contain the same number of scene headings as the original
blocksarrayTyped blocks for the original screenplay (required when input_format="blocks")
input_formatstringtext (default): line-based screenplay text; blocks: typed blocks
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — free daily quota works without one)
request_idstringIdempotency key (optional)
textstringOriginal screenplay text (required when input_format="text")

build_video_prompts Video prompt scaffolds from screenplay

Turn a screenplay into structured video-generation prompt scaffolds (deterministic — no LLM on the server; YOU fill the creative fields). For each selected scene it estimates ~15s segments (marked estimated), registers entities (characters + dialogue counts), proposes ≤4 shots per segment at beat boundaries, pre-fills dialogue lines VERBATIM from the screenplay (never rewrite them), and emits a two-layer template per segment: a SHARED block (A/V limits, camera base, style, entities, causal chain, global guards) written once, plus SHOT blocks carrying only private fields, with CUT-OUT/CUT-I…

ParameterTypeDescription
blocksarrayTyped blocks (required when input_format="blocks")
input_formatstringtext (default): line-based screenplay text. blocks: typed blocks (e.g. from format_screenplay).
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — free daily quota works without one)
request_idstringIdempotency key (optional)
scenesarrayScene numbers (1-based) to scaffold; default all (batch with this when a full screenplay is too large)
segment_secondsintegerTarget segment duration in seconds (default 15, range 5-60) — estimates, adjust to actual beats
stylestringOptional style preset as an EDITABLE starting point: engine_cinematic / painted_on_twos / live_action_neutral (default: decision checklist — never a lock)
style_notestringFree-form style note (≤500 chars) passed through VERBATIM into every segment shared block — never validated
textstringRaw screenplay text (required when input_format="text")

check_video_prompts Free prompt quality gates

FREE deterministic quality gates for video-generation prompts written against a screenplay (no LLM on the server — pattern matching and set comparison only; findings are reported, nothing is blocked). Submit the SAME screenplay plus up to 10 finished prompt texts (≤20k chars each). VIOLATIONS (objective locks): DIALOGUE_DRIFT — a DIALOGUE line attributed to a registered screenplay character whose text is not found verbatim (whitespace/punctuation-insensitive), i.e. rewritten, trimmed or hallucinated dialogue; STRUCTURE_MISSING_CUTOUT / _CUTIN / HANDOFF_MISMATCH — scaffold-format prompt…

ParameterTypeDescription
advisoriesbooleanRun advisory gates too (default true; false = violations only)
blocksarrayTyped blocks (the screenplay the prompts were written from)
char_limitintegerOptional character limit per prompt (advisory; default: the style preset recommendation, or none)
input_formatstringtext (default): line-based screenplay text. blocks: typed blocks (e.g. from format_screenplay).
promptsarrayThe finished prompt(s), 1-10 items (from build_video_prompts scaffolds or free-form)
request_idstringEchoed back for tracing (this tool is free — no idempotency semantics needed)
stylestringThe style preset you built with (enables its banned-vocabulary and recommended-limit advisories)
textstringThe screenplay the prompts were written from (required when input_format="text")

get_film_contract Film protocol contract

FREE. Return the Narracore Film Contract by section — the protocol that lets ANY vision-capable agent turn its own observation of a film into a stable, comparable, traceable Film IR (shot/scene/relation), validated and compiled by this server. The video NEVER leaves your machine: you observe and reason with your own models, this server provides the shared language and the deterministic toolchain. section="core" (default): pipeline, entities, the window protocol for long takes, observability levels (observed/mixed/inferred), entity-level provenance, limits. "vocabulary": the closed vocabulari…

ParameterTypeDescription
film_schema_versionstringRequest a specific film schema version (default: current)
sectionstringContract section to return (default: core; "all" returns every section in one call)

plan_film_analysis Analysis topology from cuts

FREE deterministic. Turn shot-cut timestamps into the analysis topology every Film Protocol agent shares: numbered base shots (shot-000001), long-take windowing (shot-000017-w01of03 when a shot exceeds the profile cap), and greedy analysis units (≤20s / ≤8 shots per unit by default). Pass duration_sec + the cut timestamps you detected locally (e.g. ffmpeg scene filter, threshold 0.30 — see get_film_contract section="media_recipe"); you get back windows and units carrying both source-relative and clip-relative times to cut your analysis clips and label your observations with. No ffmpeg co…

ParameterTypeDescription
cut_timestamps *arrayShot-cut timestamps in seconds (ascending; 0 and duration are implied)
duration_sec *numberTotal duration of the film/video in seconds

validate_film_breakdown Free breakdown preflight

FREE preflight for a film breakdown payload (film_manifest + shots + scenes + relations). Checks the contract WITHOUT watching anything: schema shape, closed vocabularies (exact→alias→reject), cross-references (shot ids, scene membership, relation endpoints), window topology (a long take's windows must be complete), provenance shape, and observability metadata only — it never judges whether an observation is TRUE (the server cannot see your video). Lossless representation fixes (alias/trim/wrap) are returned as normalized_patch; semantic problems are errors for YOU to fix, with retry_fee…

ParameterTypeDescription
film_manifest *object
relations *array
scenes *array
shots *array

compile_film_breakdown Compile film analysis (charged)

CHARGED (1 credit per film analysis — the same analysis_id within 24h is NOT charged again; failed validation is never charged). Compile a validated film breakdown into a bounded, derivable result: authoritative validation → window→canonical shot merge (long-take windows are recombined so a 60s take is ONE shot in every statistic) → exact aggregates (distributions, shot lengths, per-scene aggregates, coverage) → deterministic-heuristic reconstructions (performance arc, cut logic, camera-performance logic — reproducible interpretations, explicitly labelled, NOT facts) → a print-re…

ParameterTypeDescription
film_manifest *object
relations *array
scenes *array
shots *array
detailstringReceipt detail (default full): summary omits per-scene aggregates and heuristic derivations — totals, identifiers and the PDF report link stay; free to re-call full within the same analysis_id 24h w…
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — one free analysis per day works without one)
request_idstringIdempotency key (optional; same request_id never double-charges)

prepare_story_window Story window split + anchoring

FREE. Split a story conversation (verbatim user/assistant turns) into stable, hash-anchored units for the Narracore Story Continuity Protocol. YOU judge the story; the server only slices and anchors provenance — a source is traceable, not proof your interpretation is true. Keep the full text and returned StoryState client-side (server stores nothing); failed calls are never charged. 免费:故事窗口确定性切分与锚定;AI 判断、服务端只核验出处,出处不证明结论真伪;全文与 state 由调用方保存,失败不收费。

ParameterTypeDescription
conversation *array
langstring
request_idstringIdempotency key (optional; same request_id never double-charges)
stateobject

absorb_story_window Absorb window extraction (charged)

CHARGED (1 credit per story project per 24h; any validation failure is never charged, absorbed-window repeats are free no-ops). Merge YOUR extraction of a prepared window: selectors must quote/anchor exact unit text (server pulls canon verbatim; client canon_text is rejected) and the returned canon_patch must be tail-hash-verified by the client before applying. YOU decide what the story means; the server only verifies anchors and patch safety, not truth. 失败不收费、同项目 24h 只扣一次;AI 提炼、服务端核验锚点与补丁安全,不判断真伪。

ParameterTypeDescription
extraction *object
units *array
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional — one free analysis per day works without one)
request_idstringIdempotency key (optional; same request_id never double-charges)
stateobject

render_story_handoff Story handoff document

FREE. Render a StoryState into a zh/en handoff document (recent-canon window + bible) for a successor writer/AI. The server formats the state you SUPPLY — project_token proves identity only, not that the state content is authentic or current. Keep the full text client-side; failed calls are never charged. 免费:把调用方提供的 StoryState 排成交接文档;token 仅证身份、不证明 state 内容真实或最新;失败不收费。

ParameterTypeDescription
state *object
directionstring
langstring
recent_charsinteger
request_idstringIdempotency key (optional; same request_id never double-charges)

check_credits Check remaining credits

Check the remaining credits for a Narracore license key (NRC-XXXX-XXXX-XXXX-XXXX), plus recent usage and the purchase link. One credit covers one screenplay for 24 hours across the screenplay tools, or one film analysis, or one story project for 24 hours. Costs nothing. 查询授权码剩余服务次数(1 次=一份剧本 24 小时剧本类工具通用,或一次拉片分析,或一个故事项目 24 小时)。 Preferred: set the key in your MCP client auth (Authorization: Bearer NRC-…) instead of passing it in chat.

ParameterTypeDescription
license_keystringLicense key NRC-XXXX-XXXX-XXXX-XXXX (optional if configured in client auth header)