Rewrite, shorten, fix grammar, or apply a custom instruction to markdown via FlatWrite Assist (Morph: Reflex + Router + Compact + Fast Models). Returns full markdown plus the edited piece. Does not modify the editor — apply with update_document_content if desired. When selectionStart and selectionEnd are provided, only that span is rewritten.
Flatwrite Md source site12 tools on this site
What this tool does
Rewrite, shorten, fix grammar, or apply a custom instruction to markdown via FlatWrite Assist (Morph: Reflex + Router + Compact + Fast Models). Returns full markdown plus the edited piece. Does not modify the editor — apply with update_document_content if desired. When selectionStart and selectionEnd are provided, only that span is rewritten. Use it on Flatwrite Md with an agent. It runs in the browser on the website and needs no package install.
How to install
Open the flatwrite.md website and ask your browser agent to use assist_document
Run with an agent
Use the assist_document tool on flatwrite.md with markdown: <string>, mode: <string>, instruction: <string>, selectionStart: <number>, selectionEnd: <number>, selectionText: <string>. Return the structured result and cite the source page.
Input contract
markdownstringFull markdown document. Optional in the browser WebMCP path (defaults to the active editor). Required for server MCP.
modestringAssist mode.
instructionstringFreeform instruction. Required when mode is "custom".
selectionStartnumberOptional selection start index (inclusive) within markdown.
selectionEndnumberOptional selection end index (exclusive) within markdown.
selectionTextstringOptional selection text (defaults to markdown.slice(start, end)).
Verify the live listing at the source before a production call. Fields marked as a starter contract may differ from what the site expects.