safari_run_script
Run a sequence of Safari actions in one MCP session, executing each step in order and stopping if a tab-safety check or tab switch fails.
Instructions
Batch Safari actions in one MCP session, run in order. Each step is {action, args}, args as the matching tool takes them. Actions: navigate, navigateAndRead, reload, goBack, goForward, newTab, switchTab and closeTab (by tab index: {index}), listTabs, click, doubleClick, rightClick, clickAndWait, hover, fill, fillForm, fillAndSubmit, clearField, typeText, pressKey, selectOption, scroll, scrollTo, scrollToElement, readPage, getPageSource, screenshot, screenshotElement, evaluate, waitFor, waitForTime, getElementInfo, querySelectorAll, verifyState, extractTables, extractMeta, extractImages, extractLinks, analyzePage, detectForms, getAccessibilityTree, getPerformanceMetrics, getLocalStorage, setLocalStorage, deleteLocalStorage, getSessionStorage, setSessionStorage, deleteSessionStorage, getCookies, setCookie, deleteCookies, reactSelectSet, reactSelectListOptions, nativeClick, nativeHover, nativeType, nativeKeyboard, replaceEditorContent, uploadFile, mockNetworkRoute. A step refused by a tab-safety check, or a switchTab that fails, stops the batch.
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": {
"steps": "<steps>"
},
"name": "safari_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Array of steps to execute sequentially |