docs: document local backend RPC methods

This commit is contained in:
William Valentin
2026-02-22 16:36:38 -08:00
parent 6f2925ed10
commit b9cbc646fc
2 changed files with 90 additions and 1 deletions
+72
View File
@@ -343,6 +343,78 @@ Useful for proactive compaction monitoring and operator dashboards.
}
```
#### `system.localBackends`
Return status for user-level local LLM backend daemons (for example `ollama.service` and `llama-server.service`).
**Request:**
```json
{
"id": 12,
"method": "system.localBackends"
}
```
**Response:**
```json
{
"id": 12,
"result": {
"backends": [
{
"id": "ollama",
"provider": "ollama",
"name": "Ollama",
"unit": "ollama.service",
"configured": true,
"loadState": "loaded",
"activeState": "active",
"subState": "running",
"unitFileState": "enabled",
"description": "Ollama Service",
"pid": 12345,
"result": "success",
"statusText": "active (running)",
"availableActions": ["restart", "stop"]
}
]
}
}
```
#### `system.localBackendControl`
Control a local backend daemon (`start`, `restart`, `stop`).
**Request:**
```json
{
"id": 13,
"method": "system.localBackendControl",
"params": {
"backend": "ollama",
"action": "restart"
}
}
```
**Response:**
```json
{
"id": 13,
"result": {
"backend": "ollama",
"action": "restart",
"status": {
"id": "ollama",
"activeState": "active",
"subState": "running",
"statusText": "active (running)"
}
}
}
```
**Response:**
```json
{