vts_p4
Compress output from read-only Perforce commands by grouping files and capping tokens. Use for 'opened', 'changes', 'status' to reduce verbosity.
Instructions
Run a READ-ONLY Perforce (p4) command and return its output COMPACTED (token-capped) — for opened/status/reconcile/changes, whose raw output is long and repetitive. Groups files by action + depot directory and caps the list. reconcile is forced to preview (-n); mutating subcommands (submit/revert/edit/add/delete) are REFUSED — run those directly. Use instead of a raw p4 opened etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| argv | No | p4 subcommand + flags, e.g. ["opened"] or ["changes","-m","50"]. | |
| args | No | Alternative to argv: the subcommand as one string, e.g. "opened". | |
| projectPath | No | Workspace root to run in (default: configured projectPath or cwd). | |
| maxResults | No |