AI Document Workflow
Document Scan → AI Table → CSV
Correct a photographed document, detect its table structure and export CSV.
document-scanner
→ai-table-extractor
InputDocument image
Final resultCSV File
Tools useddocument-scanner → ai-table-extractor
Complete code
const scanned = await client.run("document-scanner", { file: photoFile });
const table = await client.run("ai-table-extractor", { file: scanned.files[0] });
const csvFile = table.files[0];
Before adapting this recipe, use client.describe(toolId) or the Tool Reference page to verify exact file limits, option values, and supported modes.