Skip to content
Changelog

cohost.set

Turns the AI co-host on or off, as its switch does.

JSON-RPC 2.0project.write

Parameters

  • onbooleanrequiredOn or off.
  • sourcestringA co-host's source id or name. Default: the active co-host.

Result

  • onbooleanAs set.

Errors

Invalid params (-32602) without on, or when the source isn't an AI co-host. Not found (-32004) when there's no co-host.

Events

Subscribers to events get workspace.changed.

From an AI agent

The MCP server's cohost (action: on or off) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "cohost.set",
"params": {}
}

cohost.status · cohost.say