extract_text_content
Extract text from web pages accurately by specifying a CSS selector, enabling targeted content retrieval for analysis or processing. Part of the MCP Web Browser Server.
Instructions
Extract text content from the current page, optionally using a CSS selector.
Args:
selector: Optional CSS selector to target specific elements
context: Optional context object for logging (ignored)
Returns:
Extracted text content
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | ||
selector | No |
Input Schema (JSON Schema)
{
"properties": {
"context": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Context"
},
"selector": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Selector"
}
},
"title": "extract_text_contentArguments",
"type": "object"
}