Export Query Results
exportRun a SELECT query on an Android SQLite database and save the results to a local file as JSON or CSV.
Instructions
Execute a SELECT query and export results to a local file as JSON or CSV.
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>",
"sql": "<sql>",
"file_path": "<file_path>",
"format": "<format>"
},
"name": "export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL SELECT query | |
| format | Yes | Output format: json or csv | |
| database | Yes | Database filename (e.g. app.db) | |
| file_path | Yes | Local file path to write results to |