script_toggle
Enable or disable an installed mpv user script by filename or stem. Enabling loads it immediately; disabling applies on the next launch.
Instructions
Enable or disable an installed mpv user script by filename (e.g. "autocrop.lua") or stem ("autocrop"). Enabling loads the script immediately; disabling takes effect on the next launch.
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": {
"name": "<name>",
"enabled": "<enabled>"
},
"name": "script_toggle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Script filename or stem | |
| enabled | Yes | True to enable, false to disable |