xpath_tool
Extract data from HTML using simple XPath expressions like //div, //a[@href], or //title/text(). Count matches or return extracted text.
Instructions
简易 XPath 提取:支持 //tag、tag、tag[@attr="value"]、/text() 形式(基于正则的轻量实现,不支持复杂轴表达式)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| xpath | Yes | 如 //div、//a[@href] 或 //title/text() | |
| action | No | extract |