Create Session
lyzr_session_createCreate a new session for a user. Optionally bind it to an agent and add metadata for context.
Instructions
Create a new session.
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": {
"user_id": "<user_id>"
},
"name": "lyzr_session_create"
}
}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 {}) | |
| extra_fields | No | Additional Session fields to merge into the body |