query_items
Read and search OpenHAB items using filters, fuzzy text, or batch queries to retrieve item data, states, and metadata from the openHAB REST API.
Instructions
Read item data. action: all (list with optional filters), get (by name), multi (batch by names), search (fuzzy text), master_search (across items+things+rules), room_inventory, semantic_path, neighbors, schema.
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": {
"action": "<action>"
},
"name": "query_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Comma-separated tag filter (used by: all) | |
| type | No | Item type filter (used by: all) | |
| query | No | Used by: search, master_search | |
| state | No | State equality filter (used by: all) | |
| action | Yes | ||
| itemName | No | Used by: get, semantic_path, neighbors | |
| roomName | No | Used by: room_inventory | |
| itemNames | No | Used by: multi | |
| includeMetadata | No | Include full metadata in results (used by: all). Default false to reduce token usage. |