Write to the workspace data store
set_workspace_dataCreates or replaces a workspace-scoped key-value entry storing any JSON value, with optional TTL expiry for live runtime data.
Instructions
Creates or replaces one entry in the per-workspace key-value store. value is any JSON. Optional ttlSeconds expires it. This is live runtime data — NOT versioned with the workspace's grid commits.
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": {
"workspaceId": "<workspaceId>",
"key": "<key>",
"value": "<value>"
},
"name": "set_workspace_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | Any JSON value (object, array, string, number, boolean or null). | |
| ttlSeconds | No | Seconds until the entry expires. | |
| workspaceId | Yes |