关闭标签页
tab_closeClose a specific browser tab by ID, or the most recent tab if no ID is given. Keep a target tab and close all others with the others option.
Instructions
关闭标签页,省略 tab_id 时关闭最新标签页;others=True 时保留该标签页关闭其余。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tab_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| others | No | 关闭除目标之外的所有标签页 | |
| tab_id | No | 标签页 id,省略时用最新标签页 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| message | Yes |