script_add
Install a .lua or .js mpv user script into the config scripts directory, enable it, and load it into the running player immediately.
Instructions
Install a .lua or .js mpv user script into the config scripts directory, enable it, and load it into the running player immediately.
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": {
"path": "<path>"
},
"name": "script_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .lua or .js script file to install |