AI-Process Pay Stub
process_pay_stubExtract structured data from pay stub images or PDFs. Uses AI to parse and return key fields as JSON, simplifying payroll data capture.
Instructions
AI-Process Pay Stub: extract structured data from a pay stub image/PDF via PDF4me POST /api/v2/ProcessPayStub. Body uses IsAsync (must be true) and CustomFieldKeys (PascalCase) only when custom_field_keys is non-empty—omit CustomFieldKeys when unused. Provide pdf_file_path (local .pdf/.png/.jpg/.jpeg as Base64). doc_name optional (defaults to basename); names without an extension get .png. 202 + Location poll; saves process_pay_stub.json.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "process_pay_stub"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_name | No | ||
| output_dir | No | ||
| pdf_file_path | No | ||
| custom_field_keys | No |