35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"name": "chrome_get_web_content",
|
|
"description": "Fetch content from a web page",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"description": "URL to fetch content from. If not provided, uses the current active tab"
|
|
},
|
|
"tabId": {
|
|
"type": "number",
|
|
"description": "Target an existing tab by ID (default: active tab)."
|
|
},
|
|
"background": {
|
|
"type": "boolean",
|
|
"description": "Do not activate tab/focus window while fetching (default: false)"
|
|
},
|
|
"htmlContent": {
|
|
"type": "boolean",
|
|
"description": "Get the visible HTML content of the page. If true, textContent will be ignored (default: false)"
|
|
},
|
|
"textContent": {
|
|
"type": "boolean",
|
|
"description": "Get the visible text content of the page with metadata. Ignored if htmlContent is true (default: true)"
|
|
},
|
|
"selector": {
|
|
"type": "string",
|
|
"description": "CSS selector to get content from a specific element. If provided, only content from this element will be returned"
|
|
}
|
|
},
|
|
"required": []
|
|
}
|
|
}
|