> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/cn/web-unblocker/custom-browser-instructions.md). Agents can also search and read this documentation through its [MCP server](https://developers.oxylabs.io/~gitbook/mcp).

# 自定义浏览器指令

使用网页解锁器进行浏览器自动化的概述，用于渲染 JavaScript 和与网页交互。

自定义浏览器指令是一个免费功能，属于 [**网页解锁器**](https://developers.oxylabs.io/products/cn/web-unblocker.md). 它与一个无头网页浏览器配合使用，该浏览器可以加载和渲染网页，执行 [**JavaScript**](https://developers.oxylabs.io/products/cn/web-unblocker/custom-browser-instructions/javascript-rendering.md), 像普通浏览器一样操作 DOM（Document Object Model），从而可以执行各种 [**浏览器指令**](https://developers.oxylabs.io/products/cn/web-unblocker/custom-browser-instructions/browser-instructions-beta.md) 例如点击、滚动、输入、等待等。阅读更多：

{% content-ref url="/pages/47461b111c679b1f7e4128e564285459ea04f52f" %}
[JavaScript 渲染](https://developers.oxylabs.io/products/cn/web-unblocker/custom-browser-instructions/javascript-rendering.md)
{% endcontent-ref %}

{% content-ref url="/pages/97a5433f787050a53b231928ba162b56f6d5c012" %}
[浏览器指令（Beta）](https://developers.oxylabs.io/products/cn/web-unblocker/custom-browser-instructions/browser-instructions-beta.md)
{% endcontent-ref %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/products/cn/web-unblocker/custom-browser-instructions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
