nui_snapshot
Generates a compact text outline of a FiveM resource's visible NUI—text, headings, and interactive elements with refs—so you can inspect UI state and target elements with nui_act.
Instructions
Compact text outline of a resource's visible NUI: text, headings and interactive elements as [ref] role "label". Use refs with nui_act.
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": {
"resource": "<resource>"
},
"name": "nui_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxChars | No | ||
| resource | Yes | ||
| selector | No |