preview_graft_patch
Preview a unified diff for integrating a synthesized Chameleon graft into a host file, with non-destructive deduplication of inlined shims.
Instructions
Generates a unified diff patch preview for integrating a synthesized Chameleon graft into a host workspace file with non-destructive deduplication of inlined shims.
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": {
"graftId": "<graftId>"
},
"name": "preview_graft_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graftId | Yes | ID of the synthesized Chameleon graft. | |
| targetFilePath | No | Destination relative path in host workspace. | |
| targetFileContent | No | Existing content of target file (if any) to diff against. | |
| integrationStrategy | No | Splicing strategy (append to end, prepend to top, or smart-replace matching primary symbol). |