Read PG WAL records
read_pg_wal_recordsRead PostgreSQL Write-Ahead Log records over a specified LSN range for inspection; requires pg_walinspect and indicates if the extension is unavailable.
Instructions
Read Write-Ahead Log (WAL) records information over a specified LSN range. Requires the pg_walinspect extension. If not installed, returns available=false.
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": {
"start_lsn": "<start_lsn>"
},
"name": "read_pg_wal_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| end_lsn | No | ||
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. | |
| start_lsn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | ||
| available | Yes |