Read a convar
convar_getRetrieve a Garry's Mod console variable by name to inspect its value, default, help text, flags, and min/max; protected values stay masked.
Instructions
Value (string as the engine stores it), number (the value as a number when it is one: compare this, since the same value can read "0.0" or "0.000000"), default, help text, flags (decoded), min/max of a convar. FCVAR_PROTECTED convars have their value masked.
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": {
"name": "<name>"
},
"name": "convar_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| realm | No | Execution realm (default: menu in client mode, server on srcds). | |
| 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 |
|---|---|---|---|
| max | No | ||
| min | No | ||
| via | No | ||
| help | No | ||
| name | Yes | ||
| next | No | ||
| note | No | ||
| flags | Yes | ||
| value | No | ||
| number | No | ||
| default | No | ||
| warning | No | ||
| previous | No | ||
| next_call | No | ||
| protected | No | ||
| flag_names | Yes | ||
| answered_by | No | ||
| truncated_note | No | ||
| version_warning | No |