game
Control FPS games by clipping cursor to center, moving camera with pixel offsets, and sending keep-alive signals. Use with keyboard and mouse actions for WASD and shooting.
Instructions
Game mode for FPS-style control. action: start (clip cursor to center) | move (relative camera look by dx,dy pixels * sensitivity) | stop | heartbeat (keep-alive during long holds). Combine with keyboard() down/up for WASD and mouse(action='down'/'up') for shooting/building.
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": {
"action": "<action>"
},
"name": "game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| action | Yes | ||
| sensitivity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |