p4_sync
Update local workspace files to match Perforce depot revisions, with options for forced sync, preview, metadata-only updates, and parallel transfers.
Instructions
Sync files from Perforce depot
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_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Limit sync to the first max files (optional) | |
| force | No | Force sync (optional, defaults to false) | |
| quiet | No | Suppress normal sync messages using -q (optional) | |
| preview | No | Preview sync without executing (optional, defaults to false) | |
| filespec | No | Filespec to sync (optional, defaults to current directory) | |
| parallel | No | Parallel sync specification, for example threads=4,batch=8 (optional) | |
| safeSync | No | Enable digest safety checks using -s (optional) | |
| filespecs | No | Filespecs to sync in one command (optional) | |
| reopenMoved | No | Reopen moved files in new depot locations using -r (optional) | |
| metadataOnly | No | Update have-list metadata only using -k (optional) | |
| populateOnly | No | Populate without updating server state using -p (optional) | |
| workspacePath | No | Path to workspace directory (optional, defaults to current directory) | |
| summaryPreview | No | Preview only the sync summary using p4 sync -N (optional) | |
| useListOptimization | No | Use the -L file list optimization for exact depot revisions (optional) |