omlx_run
Run prompts on a local oMLX model without web or tools; long-running calls return a job ID for later result retrieval, with context reuse and battery guard.
Instructions
Run a prompt on the local oMLX model (no tools, no web access).
Waits up to wait_seconds (max 50). If not finished, returns status="running" and a job_id; fetch it later with omlx_result. thinking=false (default) asks the chat template to skip the reasoning phase. context is placed before the prompt so repeated calls over the same material reuse oMLX's prefix cache. Refuses on battery power unless allow_on_battery=true.
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": {
"prompt": "<prompt>"
},
"name": "omlx_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| context | No | ||
| thinking | No | ||
| max_tokens | No | ||
| temperature | No | ||
| wait_seconds | No | ||
| system_prompt | No | ||
| allow_on_battery | No | ||
| include_reasoning | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||