get_entity
Retrieve the state of any Home Assistant entity, with options to filter specific fields or get complete details.
Instructions
Get the state of a Home Assistant entity with optional field filtering.
Args: entity_id: Entity ID (e.g. 'light.living_room') fields: Fields to include (e.g. ['state', 'attr.brightness']) detailed: If True, returns all fields unfiltered
Examples: get_entity("light.living_room", fields=["state", "attr.brightness"])
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": {
"entity_id": "<entity_id>"
},
"name": "get_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| fields | No | ||
| detailed | No |