Extract headings and code examples
extract_page_structureRead visible headings, indentation-preserved code examples and optional section prose on an approved public HTTPS page. Returns its source URL and untrusted source content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Approved public HTTPS URL. | |
| section | No | Return only an exact heading and its directly associated examples. Match a heading title ignoring case or an exact returned #fragment. | |
| maxHeadings | No | Maximum number of headings to return. | |
| maxCodeBlocks | No | Maximum number of examples to return. Set to 0 for headings only. | |
| maxCodeCharacters | No | Maximum characters per code example. | |
| maxSectionCharacters | No | Maximum section prose characters. Requires an exact section heading or #fragment. |