p4_search_inspect
Search Perforce files for a pattern and optionally retrieve file metadata and content previews to inspect matching results.
Instructions
Composite search helper: grep + optional fstat + optional content previews
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Search pattern for p4 grep (required) | |
| filespec | No | Single filespec to search | |
| maxFiles | No | Maximum matched files to include (optional, default 20) | |
| filespecs | No | Multiple filespecs to search in one call | |
| includeFstat | No | Include p4 fstat metadata for matched files (optional, default true) | |
| workspacePath | No | Path to workspace directory (optional, defaults to current directory) | |
| caseInsensitive | No | Case insensitive search (optional, default false) | |
| maxMatchesPerFile | No | Maximum grep matches to retain per file (optional, default 20) | |
| previewContextLines | No | Context lines before and after each match when includeContentPreview=true (optional, default 2) | |
| includeContentPreview | No | Include p4 print context snippets for matched files (optional, default false) |