addedInput schema / properties / steps
Added value: +{
+ "description": "Optional ordered browser actions to run in a real browser after the page loads, before the HTML is captured. Use `list_elements` first to find selectors. Runs once (not idempotent).",
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Wait until an element matching `selector` exists.",
+ "properties": {
+ "action": {
+ "const": "wait_for",
+ "type": "string"
+ },
+ "selector": {
+ "description": "Selector to wait for (until present).",
+ "type": "string"
+ },
+ "selector_type": {
+ "description": "How `selector` is interpreted. Defaults to 'css'.",
+ "enum": [
+ "css",
+ "xPath",
+ "className",
+ "tagName"
+ ],
+ "type": "string"
+ },
+ "timeout_ms": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "action",
+ "selector"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Wait until the given text appears on the page.",
+ "properties": {
+ "action": {
+ "const": "wait_for_text",
+ "type": "string"
+ },
+ "timeout_ms": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "Text to wait for anywhere on the page.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Pause for a fixed number of milliseconds.",
+ "properties": {
+ "action": {
+ "const": "wait",
+ "type": "string"
+ },
+ "value": {
+ "description": "Fixed pause in milliseconds.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "action",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Click the element matching `selector`.",
+ "properties": {
+ "action": {
+ "const": "click",
+ "type": "string"
+ },
+ "selector": {
+ "description": "Selector of the element to click.",
+ "type": "string"
+ },
+ "selector_type": {
+ "$ref": "#/properties/steps/items/anyOf/0/properties/selector_type",
+ "description": "How `selector` is interpreted. Defaults to 'css'."
+ },
+ "timeout_ms": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "action",
+ "selector"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Type text into an input, character by character.",
+ "properties": {
+ "action": {
+ "const": "type",
+ "type": "string"
+ },
+ "clear": {
+ "description": "Clear the field before typing.",
+ "type": "boolean"
+ },
+ "selector": {
+ "description": "Selector of the field to type into.",
+ "type": "string"
+ },
+ "selector_type": {
+ "$ref": "#/properties/steps/items/anyOf/0/properties/selector_type",
+ "description": "How `selector` is interpreted. Defaults to 'css'."
+ },
+ "timeout_ms": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "Text to type (entered human-like).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "selector",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Choose an option in a <select> dropdown by value.",
+ "properties": {
+ "action": {
+ "const": "select",
+ "type": "string"
+ },
+ "selector": {
+ "description": "Selector of the <select> element.",
+ "type": "string"
+ },
+ "selector_type": {
+ "$ref": "#/properties/steps/items/anyOf/0/properties/selector_type",
+ "description": "How `selector` is interpreted. Defaults to 'css'."
+ },
+ "timeout_ms": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "The option value to select.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "selector",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Press a single keyboard key.",
+ "properties": {
+ "action": {
+ "const": "press_key",
+ "type": "string"
+ },
+ "value": {
+ "description": "The key to press.",
+ "enum": [
+ "Enter",
+ "Tab",
+ "Escape",
+ "Backspace",
+ "Delete",
+ "Space",
+ "ArrowUp",
+ "ArrowDown",
+ "ArrowLeft",
+ "ArrowRight",
+ "Home",
+ "End",
+ "PageUp",
+ "PageDown"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Scroll the page to the bottom or by a pixel amount.",
+ "properties": {
+ "action": {
+ "const": "scroll",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "const": "bottom",
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ }
+ ],
+ "description": "'bottom' to scroll to the end, or a pixel offset."
+ }
+ },
+ "required": [
+ "action",
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+}