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
destanywhere 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.stageispreview; the tool may still change. - Spec: GDE-3, GDE-4
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
guide_id | string | yes | The guide to export. (min length 1) | |
format | markdown | html | pdf | rich_text | yes | ||
dest | string | yes | Absolute path: a folder (markdown), a file or folder (html, pdf). Required; with rich_text it is ignored (pass any path). | |
headings | numbered | step | title_only | no | "numbered" | |
image_scale | 1 | 2 | no | 1 | |
paper | a4 | letter | no | "a4" | Only for pdf. |
intro | boolean | no | true | |
notes | boolean | no | true | |
note_steps | boolean | no | true | |
request_id | string | no | Idempotency 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"}}