Import Document
sdd_import_documentImports documents or raw text and converts them to Markdown for Spec-Driven Development (SDD) processing. Returns the converted content, metadata, and word count.
Instructions
Imports a document (PDF, DOCX, PPTX, TXT, MD, VTT, SRT) or raw text and converts it to Markdown for SDD processing. Returns the converted content, metadata, and word count. Native support: MD, TXT, VTT, SRT, and raw text are fully supported; PDF/DOCX/PPTX are natively readable only when UNCOMPRESSED — typical real-world (compressed) Office/PDF files fail with an actionable error. For those, install the MarkItDown MCP integration (uvx markitdown-mcp) or convert to md/txt first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Document format. Use 'auto' for automatic detection from file extension. | auto |
| raw_text | No | Raw text content to process directly instead of reading from file. | |
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| file_path | No | Absolute or relative path to the document file (PDF, DOCX, PPTX, TXT, MD). |