From 872451e9e41a72630448f8d75127ef3fb3d3728d Mon Sep 17 00:00:00 2001 From: Helian Nuits Date: Wed, 25 Nov 2026 06:38:28 +0800 Subject: [PATCH] docs(mcp): explain text overrides when resetting paper guides Guide changes restore or replace a paper calibration, which clears saved text margins and line spacing unless explicitly supplied in the same changes map. Keep only approved overrides when requested. Matched SDK tool replies, images and SQLite unchanged. Native Luna/Terra cases verified preservation or inheritance as separate outcomes; the existing reflow behavior does not change. --- crates/panache-mcp/src/inputs.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/panache-mcp/src/inputs.rs b/crates/panache-mcp/src/inputs.rs index d1c9a1f4..01591b47 100644 --- a/crates/panache-mcp/src/inputs.rs +++ b/crates/panache-mcp/src/inputs.rs @@ -112,7 +112,9 @@ pub struct Describe { #[derive(Deserialize, JsonSchema)] #[serde(deny_unknown_fields)] pub struct Tune { - /// Replace the writing area on the saved paper, using 2..32 photo-space baselines. Pass [] to restore the original import calibration. Existing text is reflowed. Use the top and bottom writable lines even on unruled paper. + /// Replace the writing area on the saved paper with 2..32 photo-space baselines. Use the top and bottom writable lines even on unruled paper. Pass [] to restore the original import calibration. Existing text is reflowed. + /// Setting guides (including []) clears saved top_margin, bottom_margin, left_margin, right_margin, and text line_spacing unless those keys are included in changes in the same call. + /// If asked to keep overrides, resend only their approved saved values in that same changes map, not the whole effective layout. Omit those keys to inherit the paper's margins and spacing. pub paper_guides: Option>, /// Import an absolute local TTF/OTF file into this draft. Its bytes are retained across restarts. pub font_path: Option,