iflow-mcp_spyoungtech-ahk-mcp

v0.1.0
iflow-mcp_spyoungtech-ahk-mcp Checked 19 hours ago Published 10 months ago

Model 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.

ParameterTypeDescription
window_id *string

get_all_window_info

Returns information for all (non-hidden) windows, keyed by window ID

send_keys_to_window

ParameterTypeDescription
keys *string
window_id *string

list_window_controls

Given a window id, return information about controls in the window

ParameterTypeDescription
window_id *string

send_keys_to_control

Send keys to a control identified by the window ID and control class

ParameterTypeDescription
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

ParameterTypeDescription
control_hwnd *string
keys *string

move_mouse_to_screen_coordinates

Move the mouse to a position on the screen

ParameterTypeDescription
x *integer
y *integer
speed

move_mouse_relative

Move the mouse with offsets relative to its current position

ParameterTypeDescription
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

ParameterTypeDescription
x *integer
y *integer

mouse_click_at_client_coordinates

Click the left mouse button at coordinates relative to the client area

ParameterTypeDescription
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

ParameterTypeDescription
x *integer
y *integer

activate_window

Activates a window, making it the active window

ParameterTypeDescription
window_id *string

set_window_always_on_top

Sets window style to make it 'always on top'

ParameterTypeDescription
window_id *string

disable_window_always_on_top

Disables the window 'always on top' style. Has no effect if the style is not set

ParameterTypeDescription
window_id *string

send_window_to_top

Arranges the window z index to be on top of other windows

ParameterTypeDescription
window_id *string

send_window_to_bottom

Arranges the window z index to be below other windows

ParameterTypeDescription
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

ParameterTypeDescription
title *string
exactboolean

get_clipboard_contents

set_clipboard_contents

ParameterTypeDescription
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

ParameterTypeDescription
any_databoolean
timeout_secondsinteger

ocr_region

Given a region defining a bounding box (relative to the screen), screen captures the region and performs OCR, returning the text found

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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`

ParameterTypeDescription
save_file_path *string

restore_clipboard_contents

Restore previously saved clipboard contents from a file, specified by `save_file_path`

ParameterTypeDescription
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

ParameterTypeDescription
detect_hidden_windows
exclude_textstring
exclude_titlestring
textstring
timeout
titlestring
title_match_mode