session_set_context
Record session context such as goals, rules, lessons, and workflow state for later retrieval. Replace outdated entries and adjust recall weight to keep memory relevant.
Instructions
Record a session context entry: goals, rules, preferences, lessons_learned, tool_rules, workflow_state, success_patterns, failure_lessons, environment_facts, or feedback ('+Name'/'-Name' adjusts recall weight). Pass retire_entry_id to replace an outdated entry.
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>",
"section": "<section>",
"content": "<content>"
},
"name": "session_set_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| dataset | No | ||
| section | Yes | ||
| confidence | No | ||
| session_id | Yes | ||
| retire_entry_id | No |