plugins.settings.set
Changes a plugin's settings, after checking every value fits.
JSON-RPC 2.0project.write
toggle settings take true or false, number a number, choice one of its options, others text. A secret setting is set only by the person, in the Plugins panel.
Parameters
- packagestringrequiredThe plugin's package id or name.
- values{ [key: string]: any }requiredThe settings to change.
Errors
Not found (-32004) when it isn't installed. Invalid params (-32602) when the package isn't a helper or script, or is PiAir. Invalid params (-32602) without values, for an unknown key or a value that doesn't fit. A state error (-32005) for a secret setting, or before the plugin has said what settings it has.
From an AI agent
The MCP server's plugins (action: set_settings) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "plugins.settings.set", "params": { "package": "app.example.counter", "values": { "greeting": "hi" } }}lightair call plugins.settings.set '{"package":"app.example.counter","values":{"greeting":"hi"}}'const result = lightair.call("plugins.settings.set", {"package":"app.example.counter","values":{"greeting":"hi"}});Result
{}