Get Kimi File Diff
kimi_get_diffGet the exact diff for a file in a Kimi session workspace. Use after a changed path is identified to retrieve the patch content for that file. Read-only, does not modify state.
Instructions
Read the diff for one file in an owned Kimi session workspace. Use after kimi_get_handoff or kimi_review_package identifies a changed path and exact patch content is needed. Returns the requested path and diff content. This tool is read-only and does not modify the file, session, or durable job state.
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": {
"sessionId": "<sessionId>",
"path": "<path>"
},
"name": "kimi_get_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Workspace-relative file path whose diff should be returned. Prefer a path reported by kimi_get_handoff or kimi_review_package. | |
| sessionId | Yes | Kimi session ID that owns the workspace/file change. |