> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/action-shi-yong-zhi-nan/navigation/close-tab.md).

# Close tab

Close tab 是命令浏览器立即关闭当前正在激活(active)的标签页(tab)的操作。此操作没有任何附带的配置参数。

🎥 观看更多教程视频：[点击这里](https://youtu.be/a9qNt96X1SM)。

#### 实际示例：完成子任务后清理屏幕

当您打开一个辅助标签页以从邮箱获取验证码或获取电子钱包信息，在将所需数据复制到变量后，您需要关闭该标签页以释放 RAM 内存并保持浏览器界面整洁：

* 处理流程：
  1. 在辅助标签页中成功获取 OTP 验证码的操作。
  2. 将 Close tab 操作拖入脚本中。
  3. 调用 Active tab 操作（索引 index = `0`）以将控制权交还给主工作标签页。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-zh/action-shi-yong-zhi-nan/navigation/close-tab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
