review_file
Analyze code changes in a single file to provide review suggestions based on specific modifications and their purpose.
Instructions
【次要工具】审查单个文件的内容。适用于改动仅在单个或两个文件内的情况。Codex 将读取文件并根据变更描述提供审查建议。
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": {
"file_path": "<file_path>",
"change_description": "<change_description>"
},
"name": "review_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | 要审查的文件路径(相对或绝对路径) | |
| change_description | Yes | Agent 具体修改了代码的什么内容(详细说明修改了逻辑以及目的) | |
| session_id | No | 用于维护上下文连续性的会话 ID。**重要提示**:Agent 应为每个独立的用户任务生成一个唯一的 Session ID,并在该任务的所有相关工具调用中复用它。这允许 Codex 记住之前的变更和对话历史。 |