Load model
load_modelLoad a model into memory on a selected local provider to prepare it for inference, with optional keep-alive and context length controls.
Instructions
Load a model into memory on ONE provider so it is ready for inference. Optional keepAlive (e.g. '5m', '1h') and contextLength. Without provider, uses the live local provider that has the model.
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": "load_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id/name to load | |
| provider | No | Provider instance name. Omit to let the server choose (local providers only, unless LOCAL_AI_ALLOW_HOSTED_FALLBACK is set). | |
| keepAlive | No | How long to keep the model resident, e.g. '5m' | |
| contextLength | No | Context window to load with (Ollama num_ctx, LM Studio --context-length) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| load | Yes |