Skip to main content

Crate tauri_plugin_automation_server

Crate tauri_plugin_automation_server 

Source
Expand description

Tauri Automation Plugin

Provides HTTP API for external automation of Tauri v2 applications. Enables Claude Code and other tools to control Tauri apps for testing.

Note: Rust crate supports Tauri v2 only. The JavaScript API supports both v1 and v2.

§Usage

tauri-plugin-automation-server = { git = "https://github.com/dcherrera/tauri-plugin-automation" }
tauri::Builder::default()
    .setup(|app| {
        tauri_plugin_automation_server::start_server(app.handle().clone());
        Ok(())
    })

Modules§

server
HTTP server for automation commands

Functions§

receive_screenshot
Receive screenshot data from JavaScript
set_screenshot_data
Store screenshot data from JavaScript
start_server
Start the automation HTTP server
take_screenshot_data
Take screenshot data (clears buffer)