chrome_extract
Extract data from a Chrome page by providing a CSS selector or JavaScript expression. Returns the value as JSON.
Instructions
Extract data from a page by selector or by JavaScript expression.
Args: session_id: Session returned by chrome_open_session selector: CSS selector to query attribute: Attribute name to read from selected element javascript_expression: JavaScript expression to evaluate directly
Returns: Extracted value as JSON or error message
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": {
"session_id": "<session_id>"
},
"name": "chrome_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | ||
| attribute | No | ||
| session_id | Yes | ||
| javascript_expression | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |