MCP 服务器

Computer-Use Agents API

io.github.hcompai/hai-agents
AI 与智能体 开发者工具 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Runs and manages computer-use agents in browser sessions, including messaging, file access, session polling, cancellation, and sharing.

cancel_session
Cancel a session; a no-op if it does not exist or already finished.
输入模式
{'type': 'object', 'required': ['session_id'], 'properties': {'session_id': {'type': 'string'}}}
输出模式
{'type': 'object', 'additionalProperties': {'type': 'string'}}
list_agents
List agents the caller can run: their org's agents plus the public ``h/`` ones.
输入模式
{'type': 'object', 'properties': {'page': {'type': 'integer', 'default': 1}, 'size': {'type': 'integer', 'default': 20}}}
输出模式
{'type': 'object', 'additionalProperties': True}
list_files
List files on a browser session's machine (e.g. downloads), newest first. ``session_id`` is the browser session id issued by env-manager when the session was created, not the id ``run_agent`` returns. When a listing is truncated, page on the last entry's modified_at (ISO-8601) and name, passed as modified_before and name_after. Send both: modification times are not unique, and a timestamp alone skips the rest of a tied group.
输入模式
{'type': 'object', 'required': ['session_id'], 'properties': {'path': {'type': 'string', 'default': '~/Downloads'}, 'name_after': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None}, 'session_id': {'type': 'string'}, 'max_entries': {'type': 'integer', 'default': 500}, 'modified_before': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None}}}
输出模式
{'type': 'object', 'additionalProperties': True}
read_file
Read a file from a browser session's machine; returns base64 content and metadata. ``session_id`` is the browser session id issued by env-manager when the session was created, not the id ``run_agent`` returns.
输入模式
{'type': 'object', 'required': ['session_id', 'path'], 'properties': {'path': {'type': 'string'}, 'session_id': {'type': 'string'}}}
输出模式
{'type': 'object', 'additionalProperties': True}
run_agent
Start an agent on a task; return the answer or a session handle to wait on. ``agent`` from list_agents.
输入模式
{'type': 'object', 'required': ['task', 'agent'], 'properties': {'task': {'type': 'string'}, 'agent': {'type': 'string'}, 'max_steps': {'anyOf': [{'type': 'integer'}, {'type': 'null'}], 'default': None}, 'max_time_s': {'anyOf': [{'type': 'number'}, {'type': 'null'}], 'default': None}, 'idempotency_key': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None}}}
输出模式
{'type': 'object', 'additionalProperties': True}
send_message
Send a follow-up message to a running session.
输入模式
{'type': 'object', 'required': ['session_id', 'message'], 'properties': {'message': {'type': 'string'}, 'session_id': {'type': 'string'}}}
输出模式
{'type': 'object', 'additionalProperties': {'type': 'string'}}
share_session
Make a session publicly readable and return its absolute share URL.
输入模式
{'type': 'object', 'required': ['session_id'], 'properties': {'session_id': {'type': 'string'}}}
输出模式
{'type': 'object', 'additionalProperties': {'type': 'string'}}
wait_for_session
Poll a session: with ``wait`` long-poll for the answer, else return the current snapshot.
输入模式
{'type': 'object', 'required': ['session_id'], 'properties': {'wait': {'type': 'boolean', 'default': True}, 'session_id': {'type': 'string'}}}
输出模式
{'type': 'object', 'additionalProperties': True}
write_file
Write base64-encoded content to a file on a browser session's machine. ``session_id`` is the browser session id issued by env-manager when the session was created, not the id ``run_agent`` returns.
输入模式
{'type': 'object', 'required': ['session_id', 'path', 'content_base64'], 'properties': {'path': {'type': 'string'}, 'session_id': {'type': 'string'}, 'content_base64': {'type': 'string'}}}
输出模式
{'type': 'object', 'additionalProperties': True}
已添加
write_file
2026年9月17日 12:42
已添加
read_file
2026年9月17日 12:42
已添加
list_files
2026年9月17日 12:42
已添加
share_session
2026年9月17日 12:42
已添加
cancel_session
2026年9月17日 12:42
已添加
send_message
2026年9月17日 12:42
已添加
list_agents
2026年9月17日 12:42
已添加
wait_for_session
2026年9月17日 12:42
已添加
run_agent
2026年9月17日 12:42