Skip to content
Changelog

source.update

Renames a source or changes its settings, everywhere it's shown.

JSON-RPC 2.0project.write

Parameters

  • sourcestringrequiredThe source's id or name.
  • namestringA new name.
  • settingsobjectSettings, merged into its own key by key.
  • replacebooleanReplace all its settings with settings instead of merging.

Errors

Not found (-32004) for an unknown source.

Events

Subscribers to events get workspace.changed.

From an AI agent

The MCP server's source (action: update) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "source.update",
"params": {
"source": "Title",
"settings": {
"text": "Live now"
}
}
}

Result

{}

source.get · object.update