p4_revert
Revert files or an entire changelist in Perforce to discard unwanted changes. Specify a changelist number, file list, or workspace path for precise control.
Instructions
Revert files or all files in changelist
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "p4_revert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to revert (optional, if not provided reverts all files) | |
| changelist | No | Changelist number (optional, defaults to default changelist) | |
| workspacePath | No | Path to workspace directory (optional, defaults to current directory) |