get_links
Retrieve all links ( tags) from a web page, including URLs and link text. Optionally filter by CSS selector and limit the number of results.
Instructions
获取页面上所有链接( 标签),返回 URL 和链接文字。
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_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxItems | No | 最多返回多少条链接,默认 50 | |
| selector | No | CSS 选择器限定范围,默认为整个页面 |