midscene_aiScroll
Automate page or element scrolling in a specified direction with fixed distances or until reaching an edge. Optionally use natural language to locate elements for precise interaction.
Instructions
Scrolls the page or a specified element. Can scroll by a fixed amount or until an edge is reached.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deepThink | No | If true and 'locate' is provided, uses a two-step AI call to precisely locate the element. | |
direction | Yes | The direction to scroll. | |
distance | No | The distance to scroll in pixels (used with scrollType 'once'). | |
locate | No | Optional natural language description of the element to scroll. If not provided, scrolls based on current mouse position. | |
scrollType | No | Type of scroll: 'once' for a fixed distance, or until reaching an edge. | once |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"deepThink": {
"default": false,
"description": "If true and 'locate' is provided, uses a two-step AI call to precisely locate the element.",
"type": "boolean"
},
"direction": {
"description": "The direction to scroll.",
"enum": [
"up",
"down",
"left",
"right"
],
"type": "string"
},
"distance": {
"description": "The distance to scroll in pixels (used with scrollType 'once').",
"type": "number"
},
"locate": {
"description": "Optional natural language description of the element to scroll. If not provided, scrolls based on current mouse position.",
"type": "string"
},
"scrollType": {
"default": "once",
"description": "Type of scroll: 'once' for a fixed distance, or until reaching an edge.",
"enum": [
"once",
"untilBottom",
"untilTop",
"untilLeft",
"untilRight"
],
"type": "string"
}
},
"required": [
"direction"
],
"type": "object"
}