resolve_port
Get the bare port number for a service in your project manifest. Use when you need the numeric port for TCP connections or config values instead of a URL.
Instructions
Bare port number of one service. Prefer resolve_url unless the caller needs the number itself (a tcp service, a config value).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | directory to resolve the current project from; defaults to where the server was started | |
| slot | No | slot name; defaults to the current slot | |
| project | No | another project's name; requires slot | |
| service | Yes | service name from the manifest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | Yes | ||
| slot | Yes | ||
| project | Yes | ||
| service | Yes |