diff --git a/src/askui/tools/store/computer/experimental/window_management/list_process_windows.py b/src/askui/tools/store/computer/experimental/window_management/list_process_windows.py index 850c8dcc..f114ec87 100644 --- a/src/askui/tools/store/computer/experimental/window_management/list_process_windows.py +++ b/src/askui/tools/store/computer/experimental/window_management/list_process_windows.py @@ -46,6 +46,10 @@ def __init__(self, agent_os: AgentOs | None = None) -> None: ) def __call__(self, process_id: int) -> str: + # the agent occassionally calls this tool with a string i/o an int + # this would lead to a tool error. to prevent this, we will convert to int + # manually here + process_id = int(process_id) get_window_list_result = self.agent_os.get_window_list(process_id) return ( f"The Process ID: {process_id} has the"