Read a project text file
project_read_fileRead a bounded line range and exact SHA-256 from supported HDL, ACF, MIF, HEX, VEC, or report files. Use nextLine to continue and expectedSha256 to prevent overwriting concurrent edits.
Instructions
Read a bounded line range and exact SHA-256 of HDL, ACF, MIF, HEX, VEC, reports or other supported text. Use nextLine to continue and expectedSha256 to avoid overwriting concurrent edits.
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": "project_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the project/workspace. Absolute paths must remain inside that scope. | |
| project | No | Existing .acf project path or unambiguous project name. File paths are scoped to its directory. | |
| encoding | No | File encoding; latin1 preserves MAX+plus II legacy bytes. Select utf8 explicitly for Unicode files. | |
| lineCount | No | Maximum lines to return; default 200. | |
| startLine | No | First one-based line to read; default 1. | |
| workspace | No | Workspace directory for resolving project names, or the scope when no project is supplied. |