读取资源内容(按 URL)
resources_getRead a web resource's content by URL, like opening a file in DevTools Sources. Applies UTF-8 correction to prevent mojibake in Chinese text and returns binary media as base64.
Instructions
按 URL 读取页面资源的内容,等同于在开发者工具 Sources 面板里点开某个文件看源码。会自动采用 UTF-8 纠偏,避免无 charset 的中文文本变乱码。图片/音视频等二进制会返回 base64。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 资源 URL,可用 resources_list 或 network_list 获取 | |
| asBase64 | No | 强制按 base64 返回原始字节,适合图片/音视频 | |
| maxChars | No | 最多返回字符数,默认 20000 |