Set a value inside the session payload
post_sessions_set_keySets a key in the encrypted session payload and returns the updated decrypted payload. If the JSON body is { "value": <x> }, the server unwraps it and stores <x> directly.
Source: POST /api/v1/sessions/set/{key}
Requires auth.sessionToken and forwards it as a Bearer token.
Prefer connection.workspaceName and connection.appId as stable config instead of generating identity fields dynamically.
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": {
"connection": "<connection>",
"params": "<params>",
"body": "<body>"
},
"name": "post_sessions_set_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | ||
| body | Yes | JSON body can be either `{ "value": <x> }` (preferred) or a raw JSON value. | |
| query | No | ||
| params | Yes | ||
| connection | Yes |