Query Local AI service
query_local_ai_serviceQuery an allow-listed Local AI HTTP API path for reads and chat, returning JSON from the local network. Send GET or POST requests to endpoints like /api/tags or /v1/chat/completions.
Instructions
Call the Local AI (Ollama-compatible) HTTP API on an allow-list of read and chat paths. Use install_model to pull and set_model_settings to create a variant. Pull and create are refused here. Talks to the local network. Returns JSON with the API body or an allow-list error.
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": {
"endpoint": "<endpoint>"
},
"name": "query_local_ai_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | JSON body for POST. Omit for GET. | |
| method | No | HTTP method. GET or POST. Default GET. | GET |
| endpoint | Yes | API path such as /api/tags or /v1/chat/completions. Leading slash optional. No query string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |