query_database
Read Tdarr database collections directly to fetch global settings, variables, staged items, jobs, and statistics beyond dedicated tools. Read-only access prevents modifications.
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.
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 |