huddo_app_submit
Change a room app's shared state with JSON Patch ops (op: add | remove | replace | test; path: a JSON Pointer like /tasks/T3/status), applied all or nothing.
Instructions
Change a room app's shared state with JSON Patch ops (op: add | remove | replace | test; path: a JSON Pointer like /tasks/T3/status), applied all or nothing. Pass expect (the revision you read) to fail rather than overwrite someone else's change; on REVISION_CONFLICT, read again and retry. Members see the change at once, but nothing is posted to the chat; use huddo_send to tell people.
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": {
"app": "<app>",
"ops": "<ops>"
},
"name": "huddo_app_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Identity slug to act as (default: the active identity) | |
| app | Yes | App id from huddo_app_list | |
| ops | Yes | JSON Patch operations, e.g. [{"op":"replace","path":"/tasks/T3/status","value":"DONE"}] | |
| room | No | roomId or index from huddo_list, for this call only (default: the default room) | |
| expect | No | Revision the change is based on (from huddo_app_state) |