Skip to main content

Sauce MCP Tools

Beta

Sauce MCP is currently in beta. The available tools may change.

Sauce MCP exposes Sauce Labs capabilities as MCP tools, grouped by capability area below. Each group lists its tools, what they do, an example prompt, and availability. You rarely name a tool yourself: you describe a goal in plain language, and your AI client decides which tools to call. For more prompts, see the Prompting Guide.

Requirements

important

Some tools need entitlements beyond a standard Sauce Labs account:

  • Private Device and Real Device Access API tools (creating sessions, taking screenshots, tapping, installing apps, running shell commands, capturing network traffic, and working with device files) need private (dedicated) devices and Real Device Access API concurrency.
  • Test Authoring tools (generating, managing, running, and scheduling test cases and suites) need Sauce AI for Test Authoring, a paid add-on for Enterprise accounts. See Sauce AI for Test Authoring.

Beyond these entitlements, access to specific tools and capabilities can also depend on your role and permissions within your Sauce Labs organization. If a tool is missing or returns a permissions error, ask your organization administrator to review your team membership and access settings.

Account & team

Look up account, user, team, and region information. Useful for confirming which environment your agent is working in.

ToolDescriptionExample promptRequirements
get_account_infoRetrieve your Sauce Labs account details and concurrency limits."What are my account's concurrency limits?"Standard
get_userLook up details for a specific user."Show the details for user jdoe."Standard
get_my_active_teamShow the team your account is currently acting under."Which team am I currently using?"Standard
lookup_teamsSearch the teams in your organization."List the teams in my organization."Standard
get_active_regionReport which Sauce Labs data center the server is connected to."Which Sauce Labs region am I connected to?"Standard

Real Device Access API

Device discovery

List devices in the Sauce Labs catalog and check their live availability before provisioning a session.

ToolDescriptionExample promptRequirements
listDevicesList real devices in the catalog, with optional filters for OS, version, and form factor."What Android 14 phones are available?"Private Device and Real Device Access API
listDeviceStatusShow the live status (available, in use, cleaning, offline) of devices."Is a Galaxy S24 free right now?"Private Device and Real Device Access API
get_specific_deviceRetrieve the full descriptor for a single device."Show details for the iPhone 15 Pro."Private Device and Real Device Access API

Real device sessions

Start, inspect, and end real-device sessions, and interact with the device directly.

ToolDescriptionExample promptRequirements
createSessionStart a real-device session on a chosen device and return a session you reference in later calls."Start a session on an available Pixel 8."Private Device and Real Device Access API
listSessionsList your active real-device sessions."What sessions do I have open?"Private Device and Real Device Access API
deleteSessionEnd an active session and release the device."Close my current session."Private Device and Real Device Access API
take_screenshotCapture a PNG screenshot of the current device screen."Take a screenshot of the current screen."Private Device and Real Device Access API
tap_elementTap an element or screen coordinates on the device."Tap the Login button."Private Device and Real Device Access API
dump_uiReturn the device's current UI hierarchy for inspection."What elements are on the screen right now?"Private Device and Real Device Access API
openUrlOpen a URL on the device."Open example.com on the device."Private Device and Real Device Access API
applyDeviceSettingsChange device settings such as orientation, locale, or animations."Switch the device to dark mode."Private Device and Real Device Access API
executeShellCommandRun an ADB shell command on an Android device."Run pm list packages on the device."Private Device and Real Device Access API

App management

Install, launch, and uninstall apps from Sauce Storage on a device, and check installation status.

ToolDescriptionExample promptRequirements
installAppInstall an app from Sauce Storage onto the device."Install the latest build from Sauce Storage."Private Device and Real Device Access API
launchAppLaunch an installed app on the device."Launch the app."Private Device and Real Device Access API
uninstallAppRemove an installed app from the device."Uninstall the app from the device."Private Device and Real Device Access API
listAppInstallationsList apps currently installed in the session."What apps are installed in this session?"Private Device and Real Device Access API
waitForAppInstallationWait until an app finishes installing."Wait until the app finishes installing."Private Device and Real Device Access API

Device files

Browse and manage files on the device filesystem during a session.

ToolDescriptionExample promptRequirements
listFilesList files in a directory on the device."List the files under /sdcard/Download."Private Device and Real Device Access API
statFileGet metadata for a file on the device."Show the metadata for that file."Private Device and Real Device Access API
removeFileDelete a file on the device."Delete /sdcard/Download/report.csv."Private Device and Real Device Access API

Network

Shape network conditions and capture traffic during a session.

ToolDescriptionExample promptRequirements
setNetworkConditionsApply custom network conditions (latency, bandwidth, packet loss) to the device."Throttle the connection to 3G speeds."Private Device and Real Device Access API
setNetworkProfileApply a predefined network profile to the device."Apply the 4G network profile."Private Device and Real Device Access API
listNetworkProfilesList the available network profiles."What network profiles are available?"Private Device and Real Device Access API
startNetworkCaptureBegin capturing the device's network traffic."Start capturing network traffic."Private Device and Real Device Access API
stopNetworkCaptureStop the active network capture."Stop the network capture."Private Device and Real Device Access API

Jobs, builds & assets

Inspect jobs and builds, and retrieve the assets they produce, such as logs, screenshots, video, and network captures.

ToolDescriptionExample promptRequirements
get_recent_jobsList your most recent jobs."Show my most recent jobs."Real Device Cloud or Virtual Device Cloud
get_job_detailsRetrieve the details and result of a specific job."Why did my last job fail?"Real Device Cloud or Virtual Device Cloud
get_real_device_jobsList real-device jobs."List my real-device jobs."Real Device Cloud or Virtual Device Cloud
get_specific_real_device_jobRetrieve the details of a specific real-device job."Show the details of job 1a2b3c."Real Device Cloud or Virtual Device Cloud
get_test_assetsList the assets attached to a job."What assets does that job have?"Real Device Cloud or Virtual Device Cloud
get_artifact_fileRetrieve a specific artifact file from a job."Download the logcat from that job."Real Device Cloud or Virtual Device Cloud
get_network_har_fileRetrieve a job's captured network traffic as a HAR file."Get the HAR file from that job."Real Device Cloud or Virtual Device Cloud
filter_har_dataFilter a HAR capture down to the entries you care about."Show only the failed requests in that HAR."Real Device Cloud or Virtual Device Cloud
lookup_buildsSearch your builds."List my recent builds."Real Device Cloud or Virtual Device Cloud
get_buildRetrieve the details of a specific build."Show the details of my latest build."Real Device Cloud or Virtual Device Cloud

Storage

Upload and browse app builds in Sauce Storage.

ToolDescriptionExample promptRequirements
upload_file_to_storageUpload an app build to Sauce Storage."Upload this APK to Sauce Storage."Real Device Cloud or Virtual Device Cloud
get_storage_filesList the app builds in Sauce Storage."What app builds are in my storage?"Real Device Cloud or Virtual Device Cloud
get_storage_groupsList the storage groups (apps grouped by identifier)."List my storage groups."Real Device Cloud or Virtual Device Cloud

Tunnels

Inspect Sauce Connect tunnels and the jobs running through them.

ToolDescriptionExample promptRequirements
get_tunnel_informationRetrieve details for a specific tunnel."Show details for tunnel my-tunnel."Standard
get_tunnels_for_userList the tunnels owned by a user."Do I have any active tunnels?"Standard
get_current_jobs_for_tunnelList the jobs currently running through a tunnel."What jobs are running through my tunnel?"Standard

Test Authoring

The following tools are powered by Sauce AI for Test Authoring, a paid add-on for Enterprise accounts. They let your agent generate test cases from natural-language intent, manage and run them, organize them into suites, and schedule recurring runs — all without writing code. All tools in this section require the Test Authoring add-on.

Test cases

Generate test cases from natural-language intent and manage your saved test cases. You describe what to test, and a test case is generated, saved, and made runnable.

ToolDescriptionExample promptRequirements
generate_test_caseGenerate a test case from a natural-language intent against a web URL or a mobile app in Sauce Storage."Generate a test case using the latest Chrome version on Linux that logs into saucedemo.com and adds an item to the cart."Test Authoring
Get_test_case_generation_statusCheck the status of an asynchronous generation task and get the resulting test case ID when it completes."Is my test case done generating yet?"Test Authoring
List_test_casesList and search your saved test cases, with filters for search term, date range, user, team, and suite."List my test cases that mention checkout."Test Authoring
Get_a_test_caseRetrieve the full details and steps of a single test case."Show me the steps in the login test case."Test Authoring
Rename_a_test_caseRename an existing test case."Rename that test case to 'Checkout - happy path'."Test Authoring
Delete_a_test_caseDelete a test case."Delete the old smoke-test test case."Test Authoring

Code generation

Export an authored test case as runnable source code in the language and framework of your choice.

ToolDescriptionExample promptRequirements
List_valid_code_generation_targets_for_a_test_caseList the language/framework targets available for a given test case (depends on its platform)."What languages can I export this test case to?"Test Authoring
Generate_source_code_for_a_test_caseGenerate source code for the latest revision of a test case in a chosen target (e.g. javascript_webdriverio)."Give me this test case as Python Selenium code."Test Authoring

Running test cases

Run authored test cases on Sauce Labs and inspect the results.

ToolDescriptionExample promptRequirements
Run_a_test_caseStart a run of a test case against one or more browser/device targets, optionally under a build name and Sauce Connect tunnel."Run the login test case on Chrome and Safari."Test Authoring
Get_a_test_case_runRetrieve the status and result of a specific test case run."Did my last test case run pass?"Test Authoring
List_test_case_runsList the runs for a test case."Show the run history for this test case."Test Authoring
Get_artifact_fileRetrieve an artifact file (such as a screenshot or log) produced by a test case run."Download the screenshot from that run."Test Authoring

Test suites

Group test cases into suites and run them together for broader regression coverage.

ToolDescriptionExample promptRequirements
Create_a_test_suiteCreate a test suite, optionally with a name, tags, and an initial set of test cases."Create a 'Checkout regression' suite from these three test cases."Test Authoring
List_test_suitesList your test suites."What test suites do I have?"Test Authoring
Get_a_test_suiteRetrieve the details of a single test suite, including its test cases."What's in the checkout regression suite?"Test Authoring
Update_a_test_suiteUpdate a suite — rename it, change tags, or add and remove test cases."Add the guest-checkout test to the regression suite."Test Authoring
Delete_a_test_suiteDelete a test suite."Delete the old regression suite."Test Authoring
Run_all_test_cases_in_a_suiteQueue runs for every test case in a suite, optionally under a shared build name."Run all tests in the checkout regression suite."Test Authoring

Test schedules

Schedule test suites to run automatically on a recurring cadence.

ToolDescriptionExample promptRequirements
Create_a_test_scheduleCreate a schedule that runs one or more suites on a cron cadence in a given timezone, with optional start/end dates and a max run count."Schedule the regression suite to run every weekday at 6am Eastern."Test Authoring
List_test_schedulesList your test schedules."What schedules do I have set up?"Test Authoring
Get_a_test_scheduleRetrieve the details of a single schedule."Show the settings for my nightly schedule."Test Authoring
Update_a_test_scheduleUpdate a schedule — change its cadence, suites, run owner, or enable/pause it."Pause the nightly schedule."Test Authoring
Delete_a_test_scheduleDelete a schedule."Delete the nightly schedule."Test Authoring