Read recent console output
read_consoleFetch recent FiveM server or client console output without running commands, filtered by channel, pattern, or substring; supports client-side sequence paging.
Instructions
Return recent console lines without running anything. For 'client', reads the devcon line buffer (live from the moment this server first connected; supports afterSeq paging). For 'server', tails FIVEM_SERVER_LOG (FXServer's redirected stdout) — the last 512 KB, filtered; afterSeq is not supported there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max lines (default 100) | |
| target | Yes | 'server' = the FXServer console (UDP RCON; needs rcon_password). 'client' = the F8 console of a running FiveM Legacy client (devcon 29200/29300) — LOCAL console commands only (connect, quit, tooling); RegisterCommand chat commands are not console commands. | |
| channel | No | Exact channel name, e.g. 'breeze-chat' or 'script:breeze-chat' | |
| pattern | No | JS regex matched against '<channel>: <message>' | |
| afterSeq | No | client only: lines after this sequence number (response carries nextSeq) | |
| contains | No | Case-insensitive substring of the message |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| matched | Yes | ||
| nextSeq | Yes | Pass as afterSeq next time (client); -1 for server | |
| clientError | No | Why the client console is not live (lines may be stale) |