download_adjunto
Download SAC case attachments for cedulas and expediente operations, saving them with case number, operation date, and original filename to a configurable location.
Instructions
Download an attachment locally. Works for both cedulas (get_detalle_cedula adjuntos[]) and expediente operations (get_adjuntos_expediente). The destination is chosen by: (1) the first file:// root from the MCP client (e.g. Cowork project dir or Claude Code project dir), (2) the SAC_DOWNLOAD_DIR env var, or (3) ~/Downloads/bogamatic-sac/. The file is named {numeroExpediente}{fechaOperacion}{fileName}.
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": {
"idAdjunto": "<idAdjunto>",
"idOperacion": "<idOperacion>",
"numeroExpediente": "<numeroExpediente>",
"fechaOperacion": "<fechaOperacion>"
},
"name": "download_adjunto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idAdjunto | Yes | Attachment ID (field 'idFichero') | |
| idOperacion | Yes | Operation ID (prefixed, as returned by parent tools) | |
| fechaOperacion | Yes | Operation date, used for the local filename | |
| numeroExpediente | Yes | Case number, used for the local filename |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |