toggle_schedule
Turn a contiguous range of hour blocks in a library's weekly schedule on or off to control when Tdarr is allowed to process that library.
Instructions
Turn a contiguous range of hour blocks in a library's weekly schedule on or off (POST /api/v2/toggle-schedule). The schedule controls when Tdarr is allowed to process the library.
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": {
"library_id": "<library_id>",
"start": "<start>",
"end": "<end>",
"type": "<type>"
},
"name": "toggle_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Index of the last schedule block in the range | |
| type | Yes | Schedule type the range belongs to, as used by the Tdarr UI | |
| start | Yes | Index of the first schedule block in the range | |
| library_id | Yes | Library ID (dbID), from list_libraries |