动作链(真实鼠标键盘)
action_chainPerforms a sequence of real mouse and keyboard actions (move, click, type, drag, scroll) via CDP events to simulate user interactions.
Instructions
按顺序执行一串真实鼠标/键盘操作(CDP Input 事件级别,非 JS 模拟)。
典型用法:先 move_to 元素再 click;或 hold+move+release 拖拽; type 输入文本前先 move_to/click 输入框获得焦点。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | 操作步骤列表,每步含 action 及所需参数,按顺序执行: - move_to: element_id 或 x/y 坐标,可带 offset_x/offset_y/duration - move: 相对移动 offset_x/offset_y - click / r_click / m_click: 可选 element_id 与 times - hold / release: 按下/松开鼠标(配合 move 实现拖拽) - scroll: delta_y/delta_x,可带 element_id - type: 输入文本 text(可带 interval 按键间隔秒数;省略时自动拟人节奏 30~90ms) - key_down / key_up: key 如 ENTER、ESC、TAB、CTRL、SHIFT、BACKSPACE - wait: seconds 等待秒数 | |
| tab_id | No | 标签页 id,省略时用最新标签页 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| actions | Yes | ||
| steps_executed | Yes |