p4_dirs
Discover directory structure in a Perforce depot by listing directories, with optional filters for streams, synced files, or client views.
Instructions
List directories in 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_dirs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | No | Limit to directories mapped in a stream view using -S (optional) | |
| filespec | No | Filespec to list directories for (optional, defaults to all directories) | |
| onlyHave | No | List directories containing files synced to the current workspace using -H (optional) | |
| filespecs | No | Filespecs to list directories for in one command (optional) | |
| ignoreCase | No | Ignore case using -i (optional; incompatible with onlyClientMapped) | |
| workspacePath | No | Path to workspace directory (optional, defaults to current directory) | |
| includeDeleted | No | Include directories containing only deleted files using -D (optional) | |
| onlyClientMapped | No | List only directories in the current client view using -C (optional) |