get-element-html
Retrieve HTML content of a specific element and its children using a CSS selector. Choose to include outer HTML or return only inner HTML for precise element inspection.
Instructions
Retrieves the HTML content of a specific element and its children
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeOuter | No | If true, includes the selected element's outer HTML; otherwise returns only inner HTML (default: false) | |
selector | Yes | CSS selector of the element to inspect |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"includeOuter": {
"description": "If true, includes the selected element's outer HTML; otherwise returns only inner HTML (default: false)",
"type": "boolean"
},
"selector": {
"description": "CSS selector of the element to inspect",
"type": "string"
}
},
"required": [
"selector"
],
"type": "object"
}