AI-Process Credit Card
process_credit_cardExtracts structured credit card data from images or PDFs and saves the result as JSON for further processing.
Instructions
AI-Process Credit Card: extract structured data from a credit card image/PDF via PDF4me POST /api/v2/ProcessCreditCard. 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 (not .pdf). 202 + Location poll; saves process_credit_card.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_credit_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_name | No | ||
| output_dir | No | ||
| pdf_file_path | No | ||
| custom_field_keys | No |