Extract Clean Text and Tables from Document
cleanroom_parse_safe_documentParse structured text and tables from an invoice, receipt, menu, or document image with hidden instructions stripped and a source file hash ($0.04).
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": {
"image_b64": "<image_b64>"
},
"name": "cleanroom_parse_safe_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_b64 | Yes | Document image payload encoded as text for table and layout extraction. | |
| spend_key | No | Optional prepaid API key for paid lookups. Can also be sent in the x-atlas-spend-key or Authorization header. | |
| builder_code | No | Optional partner referral code for revenue sharing. | |
| document_type | No | Optional document type hint. | |
| extract_tables | No | Set to true (default) to extract structured table rows and columns. | |
| idempotency_key | No | Optional unique request ID to prevent duplicate billing on retries. | |
| payment_signature | No | Optional direct payment header when paying per request without a prepaid API key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No |