Entity details
ent_infoRetrieve detailed data for a Garry's Mod entity by index—class, model, position, health, Lua table, server keyvalues, and door state—or learn when the ID is invalid.
Instructions
Details of one entity by index (id 0 = the world). Result: id, class, model, name, nick, pos, ang, valid, velocity, health, max_health, solid, movetype, collision_group (raw engine enums), obb {mins, maxs} (local bounds), parent and owner (entity ids or null), nw_vars (SetNW* values), table (the entity's Lua table, cut at depth/limit), and in the server realm keyvalues (map/engine keyvalues) and, for classes containing "door", door {m_eDoorState, m_toggle_state, state: closed|opening|open|closing|ajar}. Error not_found for an invalid id. Example: {"id": 57}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.
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": {
"id": "<id>"
},
"name": "ent_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Entity index (from ents_find / players_list). | |
| depth | No | Depth of the Lua `table` field (default 1). | |
| limit | No | Max keys per table in `table` (default 100). | |
| realm | No | Realm (default server). | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| ang | No | ||
| obb | No | ||
| pos | No | ||
| door | No | ||
| name | No | ||
| next | No | ||
| nick | No | ||
| note | No | ||
| class | Yes | ||
| model | No | ||
| owner | No | ||
| solid | No | ||
| table | No | ||
| valid | Yes | ||
| health | No | ||
| parent | No | ||
| nw_vars | No | ||
| warning | No | ||
| movetype | No | ||
| velocity | No | ||
| keyvalues | No | ||
| next_call | No | ||
| max_health | No | ||
| answered_by | No | ||
| truncated_note | No | ||
| collision_group | No | ||
| version_warning | No |