p4_diff2
Compare two Perforce depot paths server-side to list differing files or show full diff output, with no client mapping required.
Instructions
Compare two depot paths server-side (depot-to-depot diff, no client mapping required)
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": {
"sourcePath": "<sourcePath>",
"targetPath": "<targetPath>"
},
"name": "p4_diff2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourcePath | Yes | First depot filespec/path to compare (required) | |
| targetPath | Yes | Second depot filespec/path to compare (required) | |
| summaryOnly | No | If true, list differing files only like diff2 -q (default: true). If false, include full diff output. | |
| workspacePath | No | Path to workspace directory for config detection (optional, defaults to current directory) |