ensure_tab
Opens a URL by reusing an already-open tab; if none exists, creates a new tab. Prevents duplicate tabs while preserving browser login state.
Instructions
ensure_tab("https://example.com") — 复用优先的导航(借鉴 ego-lite 的
browser.openOrReuseTab:名字即语义,不用调用方记得传 reuse=True)。
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": {
"url": "<url>"
},
"name": "ensure_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| timeout | No |