analyze_headings
Analyze a page's H1-H6 heading hierarchy to return a nested tree, ordered list, tag counts, and hierarchy issues, with optional keyword checks in H1/H2 headings.
Instructions
Analyze the heading hierarchy (H1-H6) of a page. Returns a nested heading tree, flat list with ordering, tag counts, hierarchy issues, and optional keyword presence check across headings.
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": "analyze_headings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The fully-qualified URL to analyze. | |
| targetKeyword | No | Optional keyword to check for presence in H1 and H2 headings. |