Skip to content

export_guide

FreeRuns at once; you can set it to Ask firstPreview

Same action in the terminal: capturemann guide export

Export a stopped guide. Markdown goes straight into dest as guide-YYYY-MM-DD-HHMMSS.md and images-YYYY-MM-DD-HHMMSS/step-NN.png (local time); nothing is overwritten, a dest that is a file that already exists is refused, and so is a guide with no step.

  • Tier: Free, changes something: runs at once inside the library and the user's export folders; the user can set it to Ask first. A dest anywhere else is Confirm for that call (0.3.5), and the dialog shows the exact path.
  • Read-only: no
  • CLI: capturemann guide export
  • Preview: yes. _meta.stage is preview; the tool may still change.
  • Spec: GDE-3, GDE-4
NameTypeRequiredDefaultDescription
guide_idstringyesThe guide to export. (min length 1)
formatmarkdown | html | pdf | rich_textyes
deststringyesAbsolute path: a folder (markdown), a file or folder (html, pdf). Required; with rich_text it is ignored (pass any path).
headingsnumbered | step | title_onlyno"numbered"
image_scale1 | 2no1
papera4 | letterno"a4"Only for pdf.
introbooleannotrue
notesbooleannotrue
note_stepsbooleannotrue
request_idstringnoIdempotency key; a repeat within 24 h returns the first result. (min length 1, max length 256)

Returns: guide_id, format, steps, path, file, renamed, files, copied_to_clipboard, html, warnings.

Errors: user_declined, not_found, invalid_input (a dest that is a file that already exists; a guide with no step) (plus the common errors above).

JSON
{"name": "export_guide", "arguments": {"guide_id": "guide_REGRESSFIXTURE01", "format": "markdown", "dest": "/Users/me/Documents/guides"}}