页面 HTML
get_page_htmlRetrieve the complete HTML of the current page in a browser tab, excluding iframe contents. Optionally truncate output to a specified maximum length for easier handling.
Instructions
获取标签页当前页面的完整 HTML(不含 iframe 内部内容),超长时截断。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_page_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | 标签页 id,省略时用最新标签页 | |
| max_chars | No | 返回 HTML 的最大字符数,超出部分截断 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| html | Yes | ||
| tab_id | Yes | ||
| truncated | No |