ok
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "browser_cdp",
|
||||
"description": "Send a Chrome DevTools Protocol command to the target browser tab. Do not use CDP Input.* methods; use dedicated browser tools for clicks, text input, key presses, scrolling, and drag-and-drop. Browser-wide, storage, cookie, permission, download, target-management, and system-level commands are denied.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"method": {
|
||||
"type": "string",
|
||||
"description": "CDP method name, for example Runtime.evaluate, DOM.getDocument, Profiler.start, or Performance.getMetrics."
|
||||
},
|
||||
"params": {
|
||||
"type": "object",
|
||||
"description": "CDP params object. Omit or pass {} when the command takes no params."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after the CDP command completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"method"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,20 +1,28 @@
|
||||
{
|
||||
"name": "browser_click",
|
||||
"description": "Perform click on a web page. Supports single/double click, different mouse buttons, modifier keys, position offsets, and hold duration.",
|
||||
"description": "Click an element by ref from browser_snapshot. Use this instead of CDP Input.* methods.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"offsetX": {
|
||||
"type": "number",
|
||||
"description": "Optional x offset from the element center."
|
||||
},
|
||||
"offsetY": {
|
||||
"type": "number",
|
||||
"description": "Optional y offset from the element center."
|
||||
},
|
||||
"doubleClick": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to perform a double click instead of a single click"
|
||||
"description": "When true, double-click the element."
|
||||
},
|
||||
"button": {
|
||||
"type": "string",
|
||||
@@ -23,7 +31,7 @@
|
||||
"right",
|
||||
"middle"
|
||||
],
|
||||
"description": "Mouse button to click. Defaults to \"left\"."
|
||||
"description": "Mouse button. Defaults to left."
|
||||
},
|
||||
"modifiers": {
|
||||
"type": "array",
|
||||
@@ -37,27 +45,22 @@
|
||||
"ControlOrMeta"
|
||||
]
|
||||
},
|
||||
"description": "Modifier keys to hold during click. \"ControlOrMeta\" uses Ctrl on Windows/Linux and Cmd on Mac."
|
||||
},
|
||||
"offsetX": {
|
||||
"type": "number",
|
||||
"description": "Horizontal offset from element's left edge in pixels. If omitted, clicks at horizontal center."
|
||||
},
|
||||
"offsetY": {
|
||||
"type": "number",
|
||||
"description": "Vertical offset from element's top edge in pixels. If omitted, clicks at vertical center."
|
||||
"description": "Optional modifier keys."
|
||||
},
|
||||
"holdDurationMs": {
|
||||
"type": "number",
|
||||
"description": "Duration to hold the mouse button down before releasing, in milliseconds. Useful for long-press interactions. Defaults to 0 (immediate release)."
|
||||
"description": "Optional mouse hold duration before release."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after the click completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "browser_console_messages",
|
||||
"description": "Returns all console messages",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,32 @@
|
||||
{
|
||||
"name": "browser_drag",
|
||||
"description": "Perform a drag and drop operation. Drags from a source element to a target element or coordinates.",
|
||||
"description": "Drag an element by ref to another ref or viewport coordinates.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sourceRef": {
|
||||
"type": "string",
|
||||
"description": "Reference of the element to drag from"
|
||||
"description": "Source element ref from browser_snapshot."
|
||||
},
|
||||
"targetRef": {
|
||||
"type": "string",
|
||||
"description": "Reference of the element to drop onto"
|
||||
"description": "Optional target element ref from browser_snapshot."
|
||||
},
|
||||
"targetX": {
|
||||
"type": "number",
|
||||
"description": "X coordinate to drop at (relative to viewport). Use with targetY instead of targetRef for coordinate-based drops."
|
||||
"description": "Optional target viewport x coordinate."
|
||||
},
|
||||
"targetY": {
|
||||
"type": "number",
|
||||
"description": "Y coordinate to drop at (relative to viewport). Use with targetX instead of targetRef for coordinate-based drops."
|
||||
"description": "Optional target viewport y coordinate."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after drag completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -1,28 +1,31 @@
|
||||
{
|
||||
"name": "browser_fill",
|
||||
"description": "Clear and fill a value into an input element. Unlike browser_type which appends text, this clears the existing value first and sets the new value atomically. Use this when you want to replace the entire content of an input field.",
|
||||
"description": "Set the value of an input, textarea, or contenteditable element by ref.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"description": "Value to fill into the element (replaces any existing content)"
|
||||
"description": "Value to set."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after filling completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref",
|
||||
"value"
|
||||
]
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
{
|
||||
"name": "browser_fill_form",
|
||||
"description": "Fill multiple form fields at once. Each field uses ref + value. By default, each field is cleared before setting the new value.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"description": "Value to fill into the field"
|
||||
},
|
||||
"clear": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to clear existing content before filling. Defaults to true."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref",
|
||||
"value"
|
||||
]
|
||||
}
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after the fill completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"fields"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "browser_get_bounding_box",
|
||||
"description": "Get bounding box details for an element.",
|
||||
"description": "Get the viewport bounding box for an element ref.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to inspect the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
@@ -18,7 +18,6 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"name": "browser_handle_dialog",
|
||||
"description": "Configure how native browser dialogs (alert, confirm, prompt) are handled. Dialogs are non-blocking in this environment - they return immediately without showing a visible dialog. Use this tool BEFORE triggering an action that shows a dialog to configure what value it should return. Also returns recent dialog history.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accept": {
|
||||
"type": "boolean",
|
||||
"description": "For confirm() dialogs: true to simulate clicking OK (returns true), false to simulate clicking Cancel (returns false). Default behavior is true."
|
||||
},
|
||||
"promptText": {
|
||||
"type": "string",
|
||||
"description": "For prompt() dialogs: the text value to return. If not specified, prompt() returns the default value provided by the page."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"accept"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "browser_highlight",
|
||||
"description": "Temporarily highlight an element for visual debugging.",
|
||||
"description": "Highlight an element by ref in the browser page for visual grounding.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to inspect the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"durationMs": {
|
||||
"type": "number",
|
||||
@@ -22,7 +22,6 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"name": "browser_hover",
|
||||
"description": "Hover over element on page",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "browser_mouse_click_xy",
|
||||
"description": "Click left, middle, or right mouse button using coordinates from a fresh viewport screenshot captured immediately before this call for the same tab. Do not reuse older screenshot coordinates. If any other browser tool runs first, this call will fail until you capture a new viewport screenshot.",
|
||||
"description": "Click at viewport coordinates. Prefer browser_click with refs when possible.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"x": {
|
||||
"type": "number",
|
||||
"description": "X coordinate from the fresh viewport screenshot captured immediately before this call for this tab, measured in screenshot pixels."
|
||||
"description": "Viewport x coordinate."
|
||||
},
|
||||
"y": {
|
||||
"type": "number",
|
||||
"description": "Y coordinate from the fresh viewport screenshot captured immediately before this call for this tab, measured in screenshot pixels."
|
||||
"description": "Viewport y coordinate."
|
||||
},
|
||||
"button": {
|
||||
"type": "string",
|
||||
@@ -19,11 +19,15 @@
|
||||
"right",
|
||||
"middle"
|
||||
],
|
||||
"description": "Mouse button to click. Defaults to \"left\"."
|
||||
"description": "Mouse button. Defaults to left."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after the click completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"active",
|
||||
"side"
|
||||
],
|
||||
"description": "IMPORTANT: Set to \"side\" if user mentions \"side\", \"beside\", \"side panel\", or \"side by side\". Opens browser in side editor group. Defaults to \"active\" (current editor group)."
|
||||
"description": "Only set when the user explicitly asks to reveal, show, focus, or open the browser visibly. Set to \"active\" for visible/revealed browser UI, or \"side\" if the user mentions \"side\", \"beside\", \"side panel\", or \"side by side\". Omit this parameter for background automation so focus is preserved."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "browser_navigate_back",
|
||||
"description": "Go back to the previous page in browser history. Returns an error if there is no previous page to navigate to.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "browser_network_requests",
|
||||
"description": "Returns all network requests since loading the page",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,20 @@
|
||||
{
|
||||
"name": "browser_press_key",
|
||||
"description": "Press a key on the keyboard. Supports key combinations with modifiers using \"+\" syntax.",
|
||||
"description": "Press a key in the browser page using DOM keyboard events.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "Key to press. Single keys: \"a\", \"Enter\", \"Escape\", \"Tab\", \"Backspace\", \"Delete\", \"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"PageUp\", \"PageDown\", \"Home\", \"End\", \"F1\"-\"F12\", \"Space\". Key combinations with modifiers using \"+\": \"Control+s\", \"Ctrl+Shift+p\", \"Alt+Tab\", \"Meta+a\" (Cmd on Mac). Modifier aliases: Control/Ctrl, Shift, Alt/Option, Meta/Command/Cmd/Win."
|
||||
"description": "Key to press, for example Enter, Escape, Tab, ArrowDown, or a single character."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after the key press completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "browser_profile_start",
|
||||
"description": "Start CPU profiling to capture call stack timing data. Use browser_profile_stop to end profiling and get results.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "browser_profile_stop",
|
||||
"description": "Stop CPU profiling and return the profile data including call stacks, timing, and samples.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"name": "browser_resize",
|
||||
"description": "Resize the browser window",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"width": {
|
||||
"type": "number",
|
||||
"description": "Width of the browser window"
|
||||
},
|
||||
"height": {
|
||||
"type": "number",
|
||||
"description": "Height of the browser window"
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"width",
|
||||
"height"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "browser_scroll",
|
||||
"description": "Scroll the page or a specific element. Use this to bring elements into view, scroll to content, or navigate long pages. Can scroll in any direction by specifying delta values or using directional shortcuts.",
|
||||
"description": "Scroll the page, a scrollable container, or an element into view. Use this instead of CDP Input.* wheel events.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Element reference to scroll into view, or to scroll within (for scrollable containers)"
|
||||
"description": "Optional element ref from browser_snapshot."
|
||||
},
|
||||
"direction": {
|
||||
"type": "string",
|
||||
@@ -16,27 +16,31 @@
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
"description": "Direction to scroll. Shorthand for setting deltaX/deltaY."
|
||||
"description": "Scroll direction."
|
||||
},
|
||||
"amount": {
|
||||
"type": "number",
|
||||
"description": "Amount to scroll in pixels when using direction. Defaults to 300."
|
||||
"description": "Scroll amount in pixels. Defaults to 300."
|
||||
},
|
||||
"deltaX": {
|
||||
"type": "number",
|
||||
"description": "Horizontal scroll amount in pixels. Positive scrolls right, negative scrolls left."
|
||||
"description": "Explicit horizontal scroll delta."
|
||||
},
|
||||
"deltaY": {
|
||||
"type": "number",
|
||||
"description": "Vertical scroll amount in pixels. Positive scrolls down, negative scrolls up."
|
||||
"description": "Explicit vertical scroll delta."
|
||||
},
|
||||
"scrollIntoView": {
|
||||
"type": "boolean",
|
||||
"description": "If true and ref is provided, scrolls the element into view instead of scrolling within it. Defaults to true when ref is provided without delta values."
|
||||
"description": "When true, scroll the ref into view."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after scrolling completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
"name": "browser_search",
|
||||
"description": "Search for text on the current page, similar to Cmd+F / Ctrl+F. Highlights all matches, scrolls to the first match, and returns a screenshot showing the match in context along with the count and positions of matches found.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"type": "string",
|
||||
"description": "The text to search for on the page"
|
||||
},
|
||||
"caseSensitive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the search should be case-sensitive. Defaults to false."
|
||||
},
|
||||
"navigateToMatch": {
|
||||
"type": "number",
|
||||
"description": "Navigate to a specific match by index (0-based). If not provided, navigates to the first match."
|
||||
},
|
||||
"clearHighlights": {
|
||||
"type": "boolean",
|
||||
"description": "If true, clears all search highlights without performing a new search. Use this to remove previous search highlights."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,34 @@
|
||||
{
|
||||
"name": "browser_select_option",
|
||||
"description": "Select an option in a dropdown. Matching priority: exact value match, then exact label match, then partial label match. The snapshot now shows available options for select elements.",
|
||||
"description": "Select one or more options in a select element by ref.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"values": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Array of values to select. Matches against option value first, then label text, then partial label. Use exact values from the snapshot options list when available."
|
||||
"description": "Option values or labels to select."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after selection completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref",
|
||||
"values"
|
||||
]
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"active",
|
||||
"side"
|
||||
],
|
||||
"description": "IMPORTANT: Set to \"side\" if user mentions \"side\", \"beside\", \"side panel\", or \"side by side\". Opens browser in side editor group. Only for action \"new\". Defaults to \"active\"."
|
||||
"description": "Only set for action \"new\" when the user explicitly asks to reveal, show, focus, or open the browser visibly. Set to \"active\" for visible/revealed browser UI, or \"side\" if the user mentions \"side\", \"beside\", \"side panel\", or \"side by side\". Omit this parameter for background automation so focus is preserved."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -1,40 +1,43 @@
|
||||
{
|
||||
"name": "browser_type",
|
||||
"description": "Type text into editable element",
|
||||
"description": "Type text into an input, textarea, or contenteditable element by ref.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable element description used to obtain permission to interact with the element"
|
||||
},
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "Exact target element reference from the page snapshot"
|
||||
"description": "Element ref from browser_snapshot."
|
||||
},
|
||||
"text": {
|
||||
"type": "string",
|
||||
"description": "Text to type into the element"
|
||||
"description": "Text to type."
|
||||
},
|
||||
"element": {
|
||||
"type": "string",
|
||||
"description": "Human-readable description of the element."
|
||||
},
|
||||
"clear": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to clear existing content before typing. Use this to replace the current value instead of appending to it. Defaults to false."
|
||||
"description": "When true, clear existing text first."
|
||||
},
|
||||
"submit": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to submit entered text (press Enter after)"
|
||||
"description": "When true, press Enter after typing."
|
||||
},
|
||||
"slowly": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once."
|
||||
"description": "When true, type character by character."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
},
|
||||
"take_screenshot_afterwards": {
|
||||
"type": "boolean",
|
||||
"description": "When true, takes a screenshot after typing completes. Defaults to false."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"element",
|
||||
"ref",
|
||||
"text"
|
||||
]
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
"name": "browser_wait_for",
|
||||
"description": "Wait for text to appear or disappear, or wait a specified time. Note: time is in SECONDS, not milliseconds.",
|
||||
"arguments": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"time": {
|
||||
"type": "number",
|
||||
"description": "Time to wait in SECONDS (e.g., 2 for 2 seconds, 0.5 for 500ms). Use for fixed delays."
|
||||
},
|
||||
"text": {
|
||||
"type": "string",
|
||||
"description": "Wait for this text to appear on the page."
|
||||
},
|
||||
"textGone": {
|
||||
"type": "string",
|
||||
"description": "Wait for this text to disappear from the page."
|
||||
},
|
||||
"timeout": {
|
||||
"type": "number",
|
||||
"description": "Maximum time to wait for text conditions in MILLISECONDS. Defaults to 30000 (30 seconds)."
|
||||
},
|
||||
"viewId": {
|
||||
"type": "string",
|
||||
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user