+
    lHàjã  ã            	       óŠ   € R t ^ RIHtHt ^ RIHt ^ RIHt RR R lltRRR	R
RRRR/ //t	]P                  ! RR]	R RR7       R# )a3  Read which OS window sits directly underneath the Hermes desktop window.

The window list lives with the OS, so this round-trips through the gateway's
blocking-prompt bridge like `read_terminal`: ``window.read.request`` -> the renderer's
main process (native window enumeration) -> ``window.read.respond``.
)ÚCallableÚOptional©Ú	read_pane)ÚregistryNc                óF   € V ^8„  d   QhR\         \        ,          R\        /# )é   ÚcallbackÚreturn)r   r   Ústr)Úformats   "Ú;/home/ubuntu/.hermes/hermes-agent/tools/read_window_tool.pyÚ__annotate__r      s   € ÷ ñ ¤X¬hÕ%7ð Ä3ñ ó    c                ó   € \        V RR4      # )z@Return the window underneath the Hermes window as a JSON string.© )z>read_window_below is only available in the Hermes desktop app.Ú z!Failed to read the window below: z€Could not determine the window underneath (the desktop app did not answer, or window enumeration is unavailable on this system).r   ©r	   s   &r   Úread_window_below_toolr      s   € ä�X˜rð $ó ð r   ÚnameÚread_window_belowÚdescriptionu|  Identify the app window directly behind the Hermes desktop window (what the user is working in). JSON: {window: {app, title, bounds, id}, frontmost, platform}. title may be empty when the OS withholds it (noted in `note`); where windows cannot be enumerated at all, {error, platform} says what would fix it â€” relay that instead of retrying. Metadata only; never captures pixels.Ú
parametersÚtypeÚobjectÚ
propertiesÚ
desktop_uic                 ó8   € \        VP                  R 4      R7      # )r	   r   )r   Úget)ÚargsÚkws   &,r   Ú<lambda>r!   .   s   € Ô5¸r¿v¹vÀjÓ?QÕRr   u   ðŸªŸ)r   ÚtoolsetÚschemaÚhandlerÚemoji)N)Ú__doc__Útypingr   r   Útools.read_terminal_toolr   Útools.registryr   r   ÚREAD_WINDOW_BELOW_SCHEMAÚregisterr   r   r   Ú<module>r,      sd   ðñ÷ &å .Ý #÷ð ÐØð	:ð Ø�˜,¨ððÐ ð  	× Ò Ø	ØØ#ÙRØ
÷r   