Extract data from a PDF
extract_dataRead structured data with AI and check it in code: invoice (fields, lines and totals, added up), statement (bank transactions, balances compared), tables (every table, cell by cell), or schema (your own JSON Schema). Output json returns the data here; excel or csv also makes a spreadsheet file (tables and statement).
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": {
"type": "<type>"
},
"name": "extract_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A file the person attached in ChatGPT (filled in by ChatGPT). | |
| type | Yes | ||
| output | No | ||
| schema | No | For type schema: a JSON Schema object. | |
| file_id | No | A FynePDF file_id from upload_file, import_file_from_url or an earlier tool. | |
| file_url | No | A public link to the file. | |
| instructions | No | ||
| library_file_id | No | A file from the person's FynePDF Library (from list_library_files). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| file | No | ||
| type | Yes | ||
| checks | No | ||
| job_id | No | ||
| message | Yes | ||
| unverified | No |