readFile
Read the content of a local file at a specified path, enabling AI to access and view file code or text.
Instructions
读取指定路径的本地文件内容,允许 AI 查看文件代码或文本。
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": {
"filePath": "<filePath>"
},
"name": "readFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 相对或绝对路径,例如 'package.json' 或 'src/index.js' |