p4_client_create
Create a Perforce client/workspace by specifying a name, root directory, view mappings, stream, options, and description. Configure workspace settings to enable version control operations.
Instructions
Create a new client/workspace
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": {
"client": "<client>",
"root": "<root>"
},
"name": "p4_client_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Working directory path (optional) | |
| root | Yes | Root directory for the client workspace | |
| view | No | View mappings (e.g., ["//depot/... //myclient/..."]) | |
| client | Yes | Name for the new client/workspace | |
| stream | No | Stream to associate with the client (optional) | |
| options | No | Client options (optional, e.g., ["allwrite", "clobber"]) | |
| description | No | Client description (optional) |