> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# CDP API 参考

本页面列出 Lynx DevTool 支持的 Chrome DevTools Protocol 方法。标准 CDP 方法链接至
Chrome DevTools Protocol 参考文档。Lynx 扩展基于 Lynx 源码元数据编写。



:::warning 实验性参考
此生成的参考文档仍在完善中。

- CDP events 尚未包含。
- 部分 Lynx 扩展已列出，但尚未提供详细文档。
- 方法说明尚未根据实现自动校验，可能不完整或不准确。

在依赖本参考前，请根据实现及所链接的 upstream CDP reference 验证实际行为。
:::

## JavaScript 运行时支持

本参考中的 runtime-domain 方法由 PrimJS inspector 实现。PrimJS 同时用于
Main-Thread Scripting (MTS) 和 Background-Thread Scripting (BTS)。

基于 V8 的调试委托给 V8 Inspector。请参阅 [V8 CDP
参考文档](https://chromedevtools.github.io/devtools-protocol/1-3)，了解 Lynx
采用的 V8 Inspector protocol 版本。本参考不单独列出 V8 方法。

## 摘要

| 类别        |  数量 |
| --------- | --: |
| 标准 CDP 方法 | 105 |
| Lynx 扩展   |  65 |

## Domain 概览

| Domain                                                             | 作用域                   | 标准 | Lynx 扩展 |
| ------------------------------------------------------------------ | --------------------- | -: | ------: |
| [Component](/next/zh/api/cdp/api-ref/component.md)                 | `global-and-instance` |  0 |       1 |
| [CSS](/next/zh/api/cdp/api-ref/css.md)                             | `instance`            | 17 |       1 |
| [Debugger](/next/zh/api/cdp/api-ref/debugger.md)                   | `instance`            | 19 |       1 |
| [DOM](/next/zh/api/cdp/api-ref/dom.md)                             | `instance`            | 24 |       6 |
| [GlobalProps](/next/zh/api/cdp/api-ref/global-props.md)            | `instance`            |  0 |       4 |
| [HeapProfiler](/next/zh/api/cdp/api-ref/heap-profiler.md)          | `instance`            |  1 |       0 |
| [Input](/next/zh/api/cdp/api-ref/input.md)                         | `instance`            |  2 |       0 |
| [Inspector](/next/zh/api/cdp/api-ref/inspector.md)                 | `instance`            |  1 |       1 |
| [IO](/next/zh/api/cdp/api-ref/io.md)                               | `global-and-instance` |  2 |       0 |
| [LayerTree](/next/zh/api/cdp/api-ref/layer-tree.md)                | `instance`            |  3 |       0 |
| [Log](/next/zh/api/cdp/api-ref/log.md)                             | `instance`            |  3 |       0 |
| [Lynx](/next/zh/api/cdp/api-ref/lynx.md)                           | `instance`            |  0 |      10 |
| [LynxNativeModule](/next/zh/api/cdp/api-ref/lynx-native-module.md) | `instance`            |  0 |       3 |
| [LynxSetting](/next/zh/api/cdp/api-ref/lynx-setting.md)            | `global`              |  0 |       8 |
| [Memory](/next/zh/api/cdp/api-ref/memory.md)                       | `global-and-instance` |  0 |       3 |
| [Overlay](/next/zh/api/cdp/api-ref/overlay.md)                     | `instance`            |  2 |       0 |
| [Page](/next/zh/api/cdp/api-ref/page.md)                           | `instance`            |  8 |       2 |
| [Performance](/next/zh/api/cdp/api-ref/performance.md)             | `instance`            |  2 |       2 |
| [Profiler](/next/zh/api/cdp/api-ref/profiler.md)                   | `instance`            |  5 |       0 |
| [Recording](/next/zh/api/cdp/api-ref/recording.md)                 | `global-and-instance` |  0 |       2 |
| [Replay](/next/zh/api/cdp/api-ref/replay.md)                       | `global-and-instance` |  0 |       2 |
| [Runtime](/next/zh/api/cdp/api-ref/runtime.md)                     | `instance`            | 13 |       0 |
| [SystemInfo](/next/zh/api/cdp/api-ref/system-info.md)              | `global-and-instance` |  1 |       0 |
| [Template](/next/zh/api/cdp/api-ref/template.md)                   | `instance`            |  0 |       4 |
| [Tracing](/next/zh/api/cdp/api-ref/tracing.md)                     | `global-and-instance` |  2 |       4 |
| [UITree](/next/zh/api/cdp/api-ref/ui-tree.md)                      | `instance`            |  0 |       5 |
| [WhiteBoard](/next/zh/api/cdp/api-ref/white-board.md)              | `instance`            |  0 |       6 |

