> 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/phone-action/scroll.md).

# 滚动

根据起点和终点坐标滚动/滑动设备屏幕。

Scroll是手机设备屏幕的滚动/滑动动作。支持两种类型：按固定方向滚动，或从一个点滑动到另一个点的坐标。

#### 配置参数说明：

* Scroll type: 滚动类型：
  * `By direction`: 按固定方向滚动。
  * `By points`: 从起点滑动到终点的坐标。
* Direction: （选择By direction时）滚动方向 — `Up`, `Down`, `Left`, `Right`。
* Start position (x,y): （选择By points时）滑动起始点的坐标，例如 `500,1500`。
* End position (x,y): （选择By points时）滑动结束点的坐标，例如 `500,500`。
* Duration (ms): （选择By points时）执行滑动的时间，以毫秒为单位；数字越大，滑动越慢。

<figure><img src="https://1806980278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiDNNiVZHPKSIcyshmOTB%2Fuploads%2Fgit-blob-989165525e60ac35ac4ea5b273bf47f6f17f46bb%2Fpx-02.png?alt=media" alt=""><figcaption><p>按方向滚动</p></figcaption></figure>

<figure><img src="https://1806980278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiDNNiVZHPKSIcyshmOTB%2Fuploads%2Fgit-blob-ea3ac5c6c36646122c7bcd88f83a3da1f0555b83%2Fpx-02b.png?alt=media" alt=""><figcaption><p>按点滚动</p></figcaption></figure>


---

# 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/phone-action/scroll.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.
