read_file
Read a project file using its relative path and return the content with line numbers. Set a maximum line count to control how much is retrieved.
Instructions
讀取專案內的一個檔案並回傳內容(附行號)。
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 | 相對於專案根目錄的檔案路徑,例如 src/ironman/llm.py | |
| max_lines | No | 最多讀幾行 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |