LM Studio: start a session
session_startStart a persistent conversation with a local LM Studio model, loading it if needed, then send messages or run background tasks within the same memory context.
Instructions
Start a conversation with a local model that LM Studio remembers across messages. Loads the model if needed, with context_length (else the saved default) as the minimum context. Then use session_send, or task_start to run a message in the background.
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": {
"model": "<model>"
},
"name": "session_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model key from list_models. | |
| title | No | Short name to recognise the session later. | |
| reload | No | If the model is loaded with a smaller context than needed, unload it and load it again. | |
| reasoning | No | Reasoning effort, for models that support it. | |
| temperature | No | 0 is deterministic. | |
| integrations | No | LM Studio plugins or MCP servers the local model may use, as configured in LM Studio, e.g. "mcp/github". | |
| system_prompt | No | System instructions. | |
| context_length | No | Context the session needs. Default: the model's saved default. Leave it out unless the user asks for a specific context: a saved default is the user's choice for this model. | |
| max_output_tokens | No | Upper limit for generated tokens per answer. |