read_pawn_script
Read Pawn script files (.pwn/.inc) without encoding corruption. Supports optional line ranges for targeted inspection.
Instructions
MANDATORY: ALWAYS use this for .pwn/.inc files. It is the ONLY safe way to handle encoding and language. Standard tools WILL corrupt files. Optionally read only a specific line range (1-indexed).
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_pawn_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| endLine | No | Last line to read (1-indexed). Omit to read to the end. | |
| encoding | No | Override encoding (defaults to project's auto-detected encoding) | |
| startLine | No | First line to read (1-indexed). Omit to read from the start. |