iflow-mcp_spyoungtech-ahk-mcp
v0.1.0Model Context Protocol for Windows automation using AutoHotkey
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_window_text
Given a window ID, retrieve the text of the window using the Windows API.
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
get_all_window_info
Returns information for all (non-hidden) windows, keyed by window ID
send_keys_to_window
| Parameter | Type | Description |
|---|---|---|
keys * | string | |
window_id * | string |
list_window_controls
Given a window id, return information about controls in the window
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
send_keys_to_control
Send keys to a control identified by the window ID and control class
| Parameter | Type | Description |
|---|---|---|
control_class * | string | |
keys * | string | |
window_id * | string |
send_keys_to_control_using_hwnd
Send keys to control using hwnd. May be more reliable when a window has multiple controls of the same class
| Parameter | Type | Description |
|---|---|---|
control_hwnd * | string | |
keys * | string |
move_mouse_to_screen_coordinates
Move the mouse to a position on the screen
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
speed |
move_mouse_relative
Move the mouse with offsets relative to its current position
| Parameter | Type | Description |
|---|---|---|
x_offset * | integer | |
y_offset * | integer | |
speed |
get_mouse_position_on_screen
Get the mouse position relative to the screen (x,y)
get_mouse_position_relative_to_active_window
Get the mouse position relative to the active window
mouse_click
Click the left mouse button at its current position
mouse_click_at_screen_coordinates
Click the left mouse button at coordinates relative to the screen
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
mouse_click_at_client_coordinates
Click the left mouse button at coordinates relative to the client area
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
right_click
Click the right mouse button at its current position
right_click_at_screen_coordinates
Click the right mouse button at coordinates relative to the screen
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
activate_window
Activates a window, making it the active window
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
set_window_always_on_top
Sets window style to make it 'always on top'
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
disable_window_always_on_top
Disables the window 'always on top' style. Has no effect if the style is not set
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
send_window_to_top
Arranges the window z index to be on top of other windows
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
send_window_to_bottom
Arranges the window z index to be below other windows
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
find_window_by_title
Attempt to find a window containing the given title. If found, returns its window ID, else None. If `exact` is provided, matches exactly on the title
| Parameter | Type | Description |
|---|---|---|
title * | string | |
exact | boolean |
get_clipboard_contents
set_clipboard_contents
| Parameter | Type | Description |
|---|---|---|
text_content * | string |
wait_for_clipboard_contents_to_change
Wait `timeout_seconds` for the clipboard contents to change with text contents. Returns True if the clipboard change, False if the operation timed out. If `any_data` is True, waits for any content instead of just text content
| Parameter | Type | Description |
|---|---|---|
any_data | boolean | |
timeout_seconds | integer |
ocr_region
Given a region defining a bounding box (relative to the screen), screen captures the region and performs OCR, returning the text found
| Parameter | Type | Description |
|---|---|---|
height * | integer | |
left * | integer | |
top * | integer | |
width * | integer |
detailed_ocr_region
Given a region (relative to the screen), screen captures the region and performs OCR returning the location of the text found as a bounding box (relative to the capture region), the text identified, and a confidence value between 0 and 1. This is useful when you need to know the location of the identified text.
| Parameter | Type | Description |
|---|---|---|
height * | integer | |
left * | integer | |
top * | integer | |
width * | integer |
get_monitor_from_point
Given x,y screen coordinates, identifies the monitor at these coordinates and returns its information.
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
get_monitor_of_window
Given a window ID, identifies the monitor in which the window is located and returns its information.
| Parameter | Type | Description |
|---|---|---|
window_id * | string |
enumerate_monitors
get_primary_monitor
save_clipboard_contents
Save the clipboard contents as a binary blop to a file, specified by `save_file_path`
| Parameter | Type | Description |
|---|---|---|
save_file_path * | string |
restore_clipboard_contents
Restore previously saved clipboard contents from a file, specified by `save_file_path`
| Parameter | Type | Description |
|---|---|---|
save_file_path * | string |
wait_for_window
Like AutoHotkey's WinWait. Waits for the window and return the window ID if found. If timeout occurs, returns None
| Parameter | Type | Description |
|---|---|---|
detect_hidden_windows | ||
exclude_text | string | |
exclude_title | string | |
text | string | |
timeout | ||
title | string | |
title_match_mode |