read_file
Read lines from a text file in a WordPress site, with optional offset and limit controls for inspecting theme or plugin source without exposing sensitive files.
Instructions
Read a text file. offset is the first line (1-based), limit the number of lines.
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": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | No | ||
| limit | No | ||
| offset | No |