Diff one source file
websiteSourceCode_files_diffReturns a bounded unified diff for one file name between two version refs, defaulting from published to head.
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": {
"websiteId": "<websiteId>",
"name": "<name>"
},
"name": "websiteSourceCode_files_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target side of the diff: a version number, `head`, or `published`. Defaults to `head`. | |
| from | No | Base side of the diff: a version number, `head`, or `published`. Defaults to `published`. | |
| name | Yes | File name to compare. | |
| websiteId | Yes |