diff --git a/src-tauri/src/api_server.rs b/src-tauri/src/api_server.rs index 8280373f..7e54609b 100644 --- a/src-tauri/src/api_server.rs +++ b/src-tauri/src/api_server.rs @@ -7102,7 +7102,7 @@ mod tests { assert!( type_request.contains(&"locator".to_string()) && type_request.contains(&"text".to_string()) ); - for field in ["clear_first", "typos"] { + for field in ["clear_first", "typos", "wpm"] { assert!( !type_request.iter().any(|f| f == field), "{field} must be optional on a type request, required list: {type_request:?}" diff --git a/src-tauri/src/mcp_server.rs b/src-tauri/src/mcp_server.rs index 276be8ae..25d5c807 100644 --- a/src-tauri/src/mcp_server.rs +++ b/src-tauri/src/mcp_server.rs @@ -1352,6 +1352,10 @@ pub(crate) struct AgentTypeRequest { /// Mistype and correct a few characters, as a hand does. Default true. #[serde(default)] pub typos: Option, + /// Words per minute. Accepted for compatibility; it has no effect. + #[serde(default)] + #[allow(dead_code)] + pub wpm: Option, } /// What `type_locator` did. @@ -6249,6 +6253,10 @@ impl McpServer { "instant": { "type": "boolean", "description": "Paste all text at once instead of human typing. WARNING: only use on targets without bot detection — using this on public websites risks the profile being flagged." + }, + "wpm": { + "type": "number", + "description": "Words per minute. Accepted for compatibility; it has no effect." } }, "required": ["profile_id", "selector", "text"] @@ -6403,6 +6411,10 @@ impl McpServer { "instant": { "type": "boolean", "description": "Paste all text at once instead of human typing. WARNING: only use on targets without bot detection." + }, + "wpm": { + "type": "number", + "description": "Words per minute. Accepted for compatibility; it has no effect." } }, "required": ["profile_id", "text"] @@ -6821,6 +6833,10 @@ impl McpServer { "typos": { "type": "boolean", "description": "Mistype and correct a few characters, as a hand does (default: true)" + }, + "wpm": { + "type": "number", + "description": "Words per minute. Accepted for compatibility; it has no effect." } }, "required": ["profile_id", "locator", "text"]