> 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/agent-browser/device-type.md).

# 设备类型

了解如何设置 Oxylabs 代理浏览器设备类型，以便更准确地抓取响应式布局和设备特定内容。

不要在本地库配置中手动设置视口、触摸支持和 User-Agent 头部（这可能会造成指纹不匹配并触发连接超时），Agent Browser 允许你通过添加以下内容原生模拟特定设备类别： `p_device` 到你的连接字符串中的查询参数：

```bash
wss://username:password@hb.oxylabs.io?p_device=mobile
```

### 支持的设备配置文件

你可以配置 `p_device` 参数，使用以下两个受支持的设备配置文件：

<table><thead><tr><th width="123">参数值</th><th width="620">说明</th></tr></thead><tbody><tr><td><code>桌面端</code><br><em>（默认）</em></td><td>全尺寸视口、桌面平台头部、标准鼠标/键盘输入方案，以及桌面 User-Agent 字符串。</td></tr><tr><td><code>移动端</code></td><td>紧凑型移动视口，启用触摸事件 API，移动操作系统平台头部，以及移动 User-Agent。</td></tr></tbody></table>


---

# 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/agent-browser/device-type.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.
