create_port
Expose a service by mapping an external published port to its container target port, identified by project and service names.
Instructions
Expose a port for a service
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": {
"projectName": "<projectName>",
"serviceName": "<serviceName>",
"publishedPort": "<publishedPort>",
"targetPort": "<targetPort>"
},
"name": "create_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | No | ||
| targetPort | Yes | Container port | |
| projectName | Yes | Project name | |
| serviceName | Yes | Service name | |
| publishedPort | Yes | External port |