sandbox_get_url
Retrieve the public URL for a specific port inside an E2B sandbox to access running dev servers, web apps, or HTTP services directly from your browser.
Instructions
Get the public URL for a port running inside a sandbox. Use this to access dev servers, web apps, or any HTTP service running in the sandbox from a browser.
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": {
"sandboxId": "<sandboxId>",
"port": "<port>"
},
"name": "sandbox_get_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | The sandbox ID. | |
| port | Yes | The port number the service is listening on inside the sandbox (e.g., 3000, 8080). |