Gokapi Download
gokapi_downloadDownload files or multiple files as a ZIP from Gokapi, returning base64 content by default or a one-time 30-second URL when requested.
Instructions
gokapi download operations on Gokapi. Pass operation and an arguments dict matching that operation's parameters.
gokapi_download_file(id, increase_counter=None, presign_url=None) - Download a file (GET /api/files/download/{id}). Returns base64-encoded bytes. Set presign_url=true to get a one-time 30s download URL (returned as JSON) instead of the file content.
gokapi_download_zip(ids, filename=None, increase_counter=None, presign_url=None, is_file_request_id=None) - Download files as a ZIP (GET /api/files/downloadzip). ids is a comma- separated list of file IDs. Returns base64-encoded bytes unless presign_url=true (one-time 30s URL as JSON). Set is_file_request_id=true to pass a file request ID and zip all its files.
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": {
"operation": "<operation>"
},
"name": "gokapi_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |