Capture a visual document
capture_documentCreate a document with embedded step-by-step captures of terminal output, code, diffs, files, or web pages, exported as markdown, HTML, PDF, PPTX, or DOCX with optional captions.
Instructions
Create a document with embedded step-by-step captures. Each capture is rendered as an image and embedded in the document with optional captions. Output formats: markdown (with image references), html (self-contained with base64 images), pdf (print-quality), pptx (editable PowerPoint deck), or docx (editable Word document). Maximum 30 captures per document; 25 MB per embedded image and 75 MB total.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"captures": "<captures>"
},
"name": "capture_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title | |
| format | No | Output document format: markdown (image refs), html (self-contained), pdf (print-quality), pptx (editable PowerPoint), docx (editable Word) | markdown |
| output | No | Output filename (default: auto-generated as 'document-<timestamp>.md/.html/.pdf/.pptx/.docx'). Extension should match format. | |
| captures | Yes | Array of captures to embed. Each specifies capture type, type-specific parameters, and optional caption. | |
| includeTimestamps | No | Include capture timestamps in the document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the saved document | |
| bytes | Yes | Size of the saved file in bytes | |
| format | Yes | Format of the saved document | |
| captureCount | No | Number of captures embedded in the document |