Statements: Parse a PDF statement
parse_statement Parse a base64-encoded PDF bank/credit-card/loan statement and return
the extracted fields WITHOUT saving anything. Premium-only.
This is step 1 of a two-step flow: the extracted values are reviewed
with the user, and a separate apply step writes the confirmed values
to a specific account. Nothing is persisted by this tool.
Args:
pdf_base64: The PDF file encoded as a base64 string (<= 5 MB
decoded). Image-only/scanned PDFs aren't supported.
Returns:
``{"success": True, "fields": {...}, "fields_found": N,
"account_type_hint": "credit_card"|"mortgage"|...|None}`` where
each entry in ``fields`` is
``{"value": "1234.56", "confidence": 0.9, "source_text": "...",
"source": "regex"}`` (the same shape the REST parse returns). The
``value`` strings are the inputs the apply step accepts.
On failure: ``{"error": "..."}`` (not Premium, bad base64, not a
PDF, too large, or unparseable).
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_base64": "<pdf_base64>"
},
"name": "parse_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_base64 | Yes |