> 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/huong-dan-cac-action/scroll/scroll-to-top.md).

# Scroll to top

Scroll to top là hành động ra lệnh cho trình duyệt lập tức cuộn toàn bộ màn hình ngược lên trên cùng vị trí xuất phát đầu tiên của trang web. Hành động này hoạt động hoàn toàn tự động và không có bất kỳ tham số cấu hình nào kèm theo.

🎥 Xem thêm video hướng dẫn: [Tại đây](https://youtu.be/cCTEtuMtz-s).

#### Ví dụ thực tế: Quay lại thanh menu chính sau khi lướt xem nội dung

Khi bạn thiết lập kịch bản cào dữ liệu hoặc tương tác, luồng xử lý thường kéo màn hình xuống rất sâu phía dưới để tải thêm bài viết (Lazy load) hoặc đọc bình luận. Sau khi lướt xuống dưới xong, bạn muốn quay trở lại đầu trang để bấm vào thanh tìm kiếm, bảng thông báo hoặc thanh menu điều hướng nằm cố định ở trên cùng:

* Cách áp dụng: Thay vì sử dụng hành động Mouse scroll với thông số âm nhiều lần (gây tốn thời gian và khó căn chính xác nấc cuộn), bạn chỉ cần chèn duy nhất một hành động Scroll to top.
* Kết quả: Trình duyệt sẽ thực hiện lệnh kéo vút màn hình lên trên cùng của website ngay lập tức, giúp kịch bản sẵn sàng cho các thao tác tiếp theo một cách nhanh chóng và chính xác.


---

# 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/huong-dan-cac-action/scroll/scroll-to-top.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.
