query_database
Reads a Tdarr database collection directly for data not covered by dedicated tools, such as settings, variables, staged items, jobs, and statistics. Read-only access with no insert, update, or remove operations.
Instructions
Read a Tdarr database collection directly (POST /api/v2/cruddb) for anything the dedicated tools do not cover — global settings, variables, staged items, jobs, statistics. Read-only: this tool cannot insert, update or remove documents. 'getAll' on FileJSONDB returns the entire file database, so prefer search_files there.
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": {
"collection": "<collection>",
"mode": "<mode>"
},
"name": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | getAll returns every document; getById and getByIndex look one up by doc_id | |
| doc_id | No | Document ID, required for getById and getByIndex | |
| collection | Yes | Collection to read |