game_execute_command
Runs a client-side FiveM console command as if typed in F8, so resources can trigger commands like opening a UI; the command must be in allowClientCommands.
Instructions
Run a client console command as if typed in F8 (e.g. a resource's RegisterCommand to open its UI). Must be in allowClientCommands. Arguments are single tokens.
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": {
"command": "<command>"
},
"name": "game_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| player | No | ||
| server | No | ||
| command | Yes |