modifierFlags
(Array<String>, Optional): An array of modifier keys to hold during the press. Valid values: CapsLock (or Caps), Shift, Control (or Ctrl), Option (or Opt, Alt), Command (or Cmd), Function (or Fn), NumericPad (or Numpad), Help.
How to use it
modifierFlags is exposed by the MCP Server Macos Use MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the modifierFlags tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL MCP SERVER MACOS USE LISTINGOther tools in MCP Server Macos Use (11)
(Number, Optional): Duration of the feedback animation.
(Number, Optional): Add a delay after performing the action.
(String, Required): The application's name, bundle ID, or file path.
(String, Required): The name of the key (e.g., Return, Escape, ArrowUp, Delete, a, B). Case-sensitive for letters if no modifiers are active.
(Boolean, Optional): Limit traversal to visible elements.
(Number, Required): The Process ID (PID) of the target application.
(Boolean, Optional): Show visual feedback animation for actions.
(Boolean, Optional): Include a diff between traversals (if applicable).
(String, Required): The text to be typed.
(Boolean, Optional): Traverse accessibility tree after the primary action (usually defaults to true).
(Boolean, Optional): Traverse accessibility tree before the primary action.