> 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/cao-zuo-zhi-nan.md).

# 操作指南

- [📦一些默认变量](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/default-settings.md): 一些在Automate中使用的默认变量
- [🧱块](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/blocks.md)
- [Normal block](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/blocks/normal-block.md): 正常块
- [For](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/blocks/for.md): For 是一个用于重复一组操作的命令块，重复次数是预先确定的。这个循环使用一个默认计数变量 $loopIndex 来跟踪循环进度。
- [While](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/blocks/while.md): While 是一个用于重复一组操作的命令块，直到满足某个条件（Condition）才停止。
- [If, Else if 和 Else](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/blocks/if-else-if-and-else.md)
- [条件编写指南](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/blocks/writing-conditions.md): 使用导航块，如 If、Else if 或 While 时，您需要设置一个条件表达式，以便系统在运行时进行检查。该表达式将返回真 (true) 或假 (false) 的结果。
- [📊Variables](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/variables.md)
- [Set variable](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/variables/set-variable.md)
- [Increase variable](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/variables/increase-variable.md): Increase variable 用于将一个数值（在 Increase by 部分确定）添加到一个变量中。
- [Decrease variable](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/variables/decrease-variable.md): Decrease variable用于从一个变量中减去一个数字值（在Decrease by部分中定义）。
- [Count](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/variables/count.md)
- [⚙️Workflow](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow.md)
- [Exit loop](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/exit-loop.md)
- [Next loop](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/next-iteration.md)
- [Stop](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/stop.md)
- [Throw](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/throw.md)
- [Delay](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/workflow/delay.md): 在一段时间内暂停等待。
- [🔤Text & number](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number.md)
- [Random text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/random-text.md)
- [Split text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/split-text.md)
- [Read json](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/read-json.md)
- [Regex](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/regex.md)
- [Random number](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/random-number.md)
- [Math execute](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/math-execution.md)
- [2fa code](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/text-and-number/two-factor-authentication.md)
- [📁File & Folder](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder.md)
- [File exists](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/file-exists.md)
- [Copy file](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/copy-file.md)
- [Move/rename file](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/move-rename-file.md)
- [Delete file](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/delete-file.md): 根据文件路径删除文件。
- [File read all text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-all-text.md)
- [File read all lines](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-all-lines.md)
- [File read random line](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-random-line.md)
- [File write all text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/file-write-all-text.md)
- [File append line](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/append-line.md)
- [Create empty excel](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/create-empty-excel.md)
- [Read excel file](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/read-excel-file.md)
- [Write excel file](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/write-excel-file.md)
- [Append excel file](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/append-excel-file.md): 将新数据添加到现有 Excel 文件的末尾，而不覆盖当前内容。
- [Folder exists](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/folder-exists.md)
- [Create folder](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/create-folder.md)
- [Move / rename folder](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/move-rename-folder.md)
- [Delete folder](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/delete-folder.md)
- [Folder get file list](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/get-file-list.md)
- [📋Clipboard](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/clipboard.md)
- [Get clipboard text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/clipboard/get-clipboard-text.md): 从剪贴板中获取现有文本内容。
- [Set clipboard text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/clipboard/set-clipboard-text.md)
- [🌐HTTP](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/http.md)
- [HTTP request](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/http/http-request.md)
- [HTTP download](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/http/http-download.md): 通过HTTP协议将文件下载到计算机。
- [🖼️Image Search](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/image-search.md)
- [Wait to image](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/image-search/wait-for-image.md)
- [Image exists](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/image-search/image-exists.md)
- [Image search](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/image-search/image-search.md)
- [图像组合示例](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/image-search/example-combination-for-image.md)
- [Image to base64](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/image-search/image-to-base64.md)
- [🤖AI](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/artificial-intelligence.md)
- [Chat gpt](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/artificial-intelligence/chatgpt.md)
- [DeepSeek](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/artificial-intelligence/deepseek.md)
- [📧Mail](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mail.md)
- [Read mail code](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mail/read-mail-code.md)
- [Read outlook (OAuth2)](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mail/read-outlook-oauth2.md)
- [🧭Navigation](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation.md)
- [New tab](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/new-tab.md)
- [Active tab](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/active-tab.md)
- [Close tab](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/close-tab.md)
- [Close all tab](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/close-all-tabs.md)
- [Go to URL](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/go-to-url.md)
- [Back URL](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/back-url.md)
- [Reload](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/reload.md)
- [Get URL](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/get-url.md)
- [Wait URL changed](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/navigation/wait-url-changed.md)
- [🎯Element](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/element.md)
- [Wait element](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/element/wait-for-element.md)
- [Get element attribute](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/element/get-element-attribute.md)
- [Get element text](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/element/get-element-text.md)
- [Count element](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/element/count-elements.md)
- [🖱️Mouse](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mouse.md)
- [Mouse click](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mouse/mouse-click.md): 点击鼠标到一个元素上。
- [Mouse move](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mouse/mouse-movement.md)
- [Mouse press and hold](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mouse/mouse-press-and-hold.md)
- [Mouse release](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mouse/mouse-release.md)
- [Mouse scroll](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/mouse/mouse-scroll.md)
- [⌨️Keyboard](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/keyboard.md)
- [Key press](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/keyboard/key-press.md): 在网页上输入内容。
- [File upload](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/keyboard/file-upload.md)
- [Select dropdown](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/keyboard/select-dropdown.md)
- [📜Scroll](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/scroll.md)
- [Random scroll](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/scroll/random-scroll.md)
- [Scroll to top](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/scroll/scroll-to-top.md)
- [Scroll to bottom](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/scroll/scroll-to-bottom.md)
- [Scroll to element](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/scroll/scroll-to-element.md)
- [🔀Switch](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/switch.md)
- [Switch to default](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/switch/switch-to-default.md)
- [Switch to frame](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/switch/switch-to-frame.md)
- [Switch to popup](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/switch/switch-to-popup.md)
- [🍪Cookie](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/cookie.md)
- [Import cookie](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/cookie/import-cookie.md)
- [Export cookie](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/cookie/export-cookie.md)
- [⚠️Alert](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/alert.md)
- [Accept alert](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/alert/accept-alert.md)
- [Cancel alert](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/alert/cancel-alert.md)
- [📑Tab & Popup](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/tab-and-popup.md)
- [Wait popup](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/tab-and-popup/wait-popup.md)
- [Has popup](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/tab-and-popup/popup.md)
- [💻Javascript](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/javascript.md)
- [Execute js code](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/javascript/execute-javascript-code.md)
- [Get extension ID](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/javascript/get-extension-id.md)
- [Screenshot](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/javascript/screenshot.md)
- [🔗References](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/references.md)
- [Call workflow](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/references/call-workflow.md)
- [📊Google service](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/google-service.md): 读取和写入 Google Sheets 的内容
- [Read google sheet](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/google-service/read-google-sheet.md)
- [Write google sheet](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/google-service/write-google-sheet.md): 将数据写入 Google 表格


---

# 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/cao-zuo-zhi-nan.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.
