看单文件 git diff
piweb_git_diffView a file's complete Git patch to inspect changes, share it with an agent for edits, or verify modifications.
Instructions
看某个文件相对 git 的完整 patch。复制到会话里让 agent 改,或用来核查它的改动是否合理。
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": {
"cwd": "<cwd>",
"path": "<path>"
},
"name": "piweb_git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | 项目目录(仓库内)的绝对路径 | |
| path | Yes | 目标文件的绝对路径 | |
| max_chars | No | patch 截断长度,默认 30000 |