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}.
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 |