add_commands
Insert browser automation commands into existing tests at specified positions to modify test sequences for Selenium-based workflows.
Instructions
Add one or more commands to a test at a specific index. Commands use camelCase names (e.g., "click", "type", "open", "executeScript").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"test_id": "<test_id>",
"index": "<index>",
"commands": "<commands>"
},
"name": "add_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_id | Yes | The test ID to add commands to | |
| index | Yes | The 0-based index at which to insert commands | |
| commands | Yes | Array of commands to add |