Update Session
lyzr_session_updateUpdate an existing session by ID and user ID. Modify metadata, agent binding, or extra fields to keep session information current.
Instructions
Update an existing session by id.
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>",
"user_id": "<user_id>"
},
"name": "lyzr_session_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Owner of the session | |
| agent_id | No | Agent this session is bound to | |
| metadata | No | Free-form session metadata (defaults to {}) | |
| session_id | Yes | Session id | |
| extra_fields | No | Additional Session fields to merge into the body |