Import file
import_fileImport SMALL INLINE DATA into an Azquo database - a base64-encoded blob under fileContent.
Filename selects the import template.
THIS IS THE NARROW ROUTE, NOT THE GENERAL ONE. It base64-transports the file through the agent's context, so it is capped at 256 KB and refuses anything larger. Use it ONLY when the data exists solely in your context and you have no shell. Otherwise:
fetchable by URL -> import_from_url. The SERVER downloads it; nothing crosses your context.
you can run curl -> POST /api/importdata with -F 'file=@...' -F 'database=...' and an X-Azquo-Business header if switching business. ~0.1s for a 57 KB file where this tool takes minutes.
See azquo_skills id 813 for the HTTP recipe.
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": {
"database": "<database>",
"filename": "<filename>",
"fileContent": "<fileContent>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| business | No | Optional. The business this call is for, by name, e.g. "azquo" - it then runs there whatever business the session is in. Worth giving on writes when you work in more than one business: a new MCP session starts in the login's own business. list_businesses shows the names. | |
| database | Yes | Target database name | |
| filename | Yes | Original filename including extension — used to select the correct import template | |
| fileContent | Yes | Base64-encoded file bytes. Capped at 256 KB decoded - use import_from_url or POST /api/importdata for anything larger. |