Upload your current policy
upload_policy_documentPuts a document the person gave you or that you hold for them (a declarations page or an auto ID card: PDF, JPEG or PNG; an iPhone HEIC photo goes through get_upload_link, whose page converts it) through PolicyVera's own upload and read, exactly as the site's upload does. The file goes on the person's PolicyVera profile. When they send a request for that kind of coverage, the insurance agents on the request can open the file, confirmed or not; confirming tells the agents that the values PolicyVera read are right. When you can send a file to a web address, pass sizeBytes (and sha256 when you can) without base64: PolicyVera answers a one-file upload address; PUT the file's exact bytes there, then call again with its storageKey. Otherwise pass the bytes as base64 (small files only); a chat that can do neither uses get_upload_link. read_policy_document then returns what PolicyVera read.
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": {
"filename": "<filename>",
"mimeType": "<mimeType>"
},
"name": "upload_policy_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | The coverage this policy is for, when the person said it. | |
| base64 | No | The file's bytes, base64: small files only (about 3 MB). Leave it out and pass sizeBytes to get an upload address instead. | |
| sha256 | No | The file's SHA-256 as lowercase hex, when you can compute it: PolicyVera then spots a file already on the person's profile. | |
| filename | Yes | The file's name, with its extension. | |
| mimeType | Yes | The file's type: application/pdf, image/jpeg or image/png. | |
| sizeBytes | No | The file's size in bytes: with no base64, PolicyVera answers a one-file upload address for it. | |
| storageKey | No | From the upload address's answer, after the file's exact bytes are PUT there: records the file and starts PolicyVera's read. |