parse_document
Parse a PDF using a PDF4me template to extract structured data into a JSON file. Provide the PDF path and template ID or name.
Instructions
Parse a PDF with a PDF4me parse template via ParseDocument (/api/v2/ParseDocument). Requires pdf_file_path, doc_name (or uses PDF basename), parse_id (or auto-generated UUID), and either template_id (GUID) or template_name. Saves parsed_document.json under output_dir.
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": {
"pdf_file_path": "<pdf_file_path>"
},
"name": "parse_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parse_id | No | ||
| output_dir | No | ||
| template_id | No | ||
| pdf_file_path | Yes | ||
| template_name | No | ||
| request_doc_name | No |