p4_stream_switch
Switch the Perforce workspace to a target stream. Override pending changes with force when needed.
Instructions
Switch workspace to a different stream
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": {
"stream": "<stream>"
},
"name": "p4_stream_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Working directory path (optional) | |
| force | No | Force switch even with pending changes | |
| stream | Yes | Target stream path (e.g., //depot/dev) |