xml_xml_attrs
Extract attributes from all XML elements matching a specified tag, returning them as a list of dictionaries. Parses an XML string and outputs structured attribute data.
Instructions
[xml] Return attributes of all elements with a given tag name as a list of dicts.
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": {
"xml_string": "<xml_string>",
"tag": "<tag>"
},
"name": "xml_xml_attrs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_string | Yes | ||
| tag | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |