query_workspaces
Query Perforce workspaces to list workspaces, get details, check type, and view status including opened files and sync state.
Instructions
Get workspace details, list workspaces, check type and status (READ permission)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "query_workspaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Filter by user - optional for list action | |
| action | Yes | Workspace query action: list returns all workspaces matching filters, get retrieves specific workspace spec, type identifies workspace category, status shows opened files and sync state | |
| max_results | No | Maximum number of results to return | |
| workspace_name | No | Workspace name - required for get, type, status actions |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||