ruyi_dom_get_info
Extract text, HTML, form values, or specific attributes from a DOM element using a CSS selector and optional attribute name.
Instructions
读取 DOM 元素的文本内容、HTML、表单值和指定属性。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>"
},
"name": "ruyi_dom_get_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageIdx | No | ||
| selector | Yes | 元素选择器 | |
| attribute | No | 要读取的属性名(如 href, src, data-*) |