modify_workspaces
Create, delete, update, or switch Perforce workspaces. Specify workspace name, root path, view mappings, and options to manage development environments.
Instructions
Create/delete workspace, Update workspace specs, and switch active workspace (WRITE 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>",
"workspace_name": "<workspace_name>"
},
"name": "modify_workspaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Workspace modification action: create makes new workspace, delete removes workspace, update modifies workspace spec, switch changes active workspace | |
| workspace_name | Yes | Workspace name | |
| workspace_root | No | Root path of the workspace | |
| workspace_view | No | View mappings in depot-to-client format | |
| workspace_options | No | Workspace options | noallwrite noclobber nocompress unlocked nomodtime normdir |
| workspace_line_end | No | Line ending style (local, unix, win, mac) | local |
| workspace_description | No | Workspace description |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||