game_screenshot
Capture a FiveM game screenshot via window or bridge and compare it to a named visual baseline to detect UI regressions, returning a diff percentage and diff image.
Instructions
Screenshot the game. auto/window captures the local FiveM window including NUI; game uses the bridge (no NUI, works for remote clients). baseline names a visual baseline: saved on first use (or with saveBaseline), compared afterwards (returns diffPercent and a diff image when over 0.5%).
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": "game_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | auto | |
| player | No | ||
| server | No | ||
| baseline | No | ||
| maxWidth | No | ||
| saveBaseline | No |