reference_excerpt
Fetch a web page and get a plain-text excerpt centered on a specific query phrase, or the page's start if no query. Includes SSRF guards and capped context.
Instructions
Fetch a page and return a focused plain-text excerpt — around query if given, otherwise the head. SSRF-guarded and capped. For reading a specific passage.
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": {
"url": "<url>"
},
"name": "reference_excerpt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| query | No | Center the excerpt on this phrase, if present. | |
| radius | No | Chars of context each side (default 800). |