LM Studio: one-off prompt
chatSend a single prompt to a local model and get an answer with speed stats; no memory is kept. Attach text files or images for one-off queries.
Instructions
Send a single prompt (with optional text files and images) to a local model and get its answer with speed stats; nothing is remembered. Loads the model if needed. For conversations use sessions, for long jobs task_start.
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>",
"prompt": "<prompt>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Absolute paths to text files (code, logs, documents) to add to the message, up to 2 MB each. Use this instead of pasting file contents. | |
| model | Yes | Model key or loaded instance id. | |
| images | No | Absolute paths to PNG, JPEG, WebP or GIF files, for vision models. | |
| prompt | Yes | The user message. | |
| 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 | Minimum context for this prompt; the model is loaded with it if needed. 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. | |
| include_reasoning | No | Also return the model's reasoning text. | |
| max_output_tokens | No | Upper limit for generated tokens per answer. |