context_set
Store a context value for a session to enable cross-skill state sharing, with optional expiration and skill source.
Instructions
Set a context value for cross-skill state sharing
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": {
"session_id": "<session_id>",
"key": "<key>",
"value": "<value>"
},
"name": "context_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Context key | |
| value | Yes | Context value (any JSON-serializable type) | |
| session_id | Yes | Session identifier | |
| skill_name | No | Optional skill name that set this context | |
| expires_in_minutes | No | Optional expiration time in minutes |