p4_revert
Revert specified files or all files in a changelist to their last synced state. Provide a working directory path to ensure the correct Perforce workspace is used.
Instructions
Revert files or 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 |
|---|---|---|---|
| path | No | Working directory path (optional) | |
| files | No | Files to revert (optional) | |
| changelist | No | Changelist to revert all files from (optional) |