List players
players_listLists every player, including bots, with identity, position, health, and status data in the client or server realm; requires a loaded map.
Instructions
Every player (bots included). Result: {players: [{id (entity index, for player_set), class, model, nick, pos, ang, userid, steamid, bot, alive, health, eye_pos, eye_ang, noclip, god (server realm only)}], count, maxplayers}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "players_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |
|---|---|---|---|
| next | No | ||
| note | No | ||
| count | Yes | ||
| players | Yes | ||
| warning | No | ||
| next_call | No | ||
| maxplayers | No | ||
| answered_by | No | ||
| truncated_note | No | ||
| version_warning | No |