Enviar un documento al caso
upload_documentSends one of the person's documents to their open case: PDF, JPG or PNG, up to 10 MB, as base64 or a public https URL. Needs the case_id and the access code from the email the person got (ask them for it). The document is stored and checked as if the person uploaded it on their link. "document_type" is the kind the service asks for (list_services.services[].document.kind) or "documento".
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": {
"case_id": "<case_id>",
"access_code": "<access_code>",
"document_type": "<document_type>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Alternatively, a public https URL to download the file from. | |
| case_id | Yes | ||
| filename | No | ||
| access_code | Yes | The code from the person's email, e.g. "ABCD-2345". | |
| document_type | Yes | ||
| content_base64 | No | The file in base64 (a data: URL is also accepted). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| received | Yes | ||
| duplicate | No |