Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

docs(mcp): tools come in groups, and how to list them all

yhhb1e61cc320f5
diff --git a/desktop b/desktop
index 8624e71a6..cf6aca325 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 8624e71a63a02b243c35524a3108ddff1bba1c7e
+Subproject commit cf6aca32587b371f0e311c1ddeffd9c625b0f02e
diff --git a/docs/astro/src/content/docs/agents/mcp.mdx b/docs/astro/src/content/docs/agents/mcp.mdx
index e5435f2fa..afe2ba189 100644
--- a/docs/astro/src/content/docs/agents/mcp.mdx
+++ b/docs/astro/src/content/docs/agents/mcp.mdx
@@ -125,6 +125,12 @@ reconnects automatically rather than stranding the agent.
## What the agent can do
+The everyday tools (about fifty: the scene, Play, opening and saving, screenshots, logs) are listed from the start; the rest are in
+groups the agent turns on with `enable_tools` when it needs them: `assets`, `prefab`, `authoring`, `view`, `play`, `render`,
+`project`, `code`, `device` and `agent`. A full list handed over before the first call costs every session thousands of tokens and
+makes the right tool harder to find; any tool can still be called by name without being listed. Add `--all-tools` for a client
+that cannot follow a change of the tool list. The table below names tools from every group.
+
| Area | Tools (excerpt) |
| --- | --- |
| Observe | `get_scene_tree`, `get_inspector`, `get_stats`, `get_diagnostics`, `capture_viewport` (PNG), `screenshot` (whole window, includes play), `world_component` (live-World probe), `capture_frame` / `frame_draws` / `replay_draw` (the frame debugger: each draw call, why it started, the entities it drew) |
diff --git a/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx b/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx
index 6e945d503..910177e1d 100644
--- a/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx
+++ b/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx
@@ -111,6 +111,8 @@ claude mcp add estella --env ESTELLA_MCP_ALLOW_WRITES=1 -- \
## 代理能做什么
+常用的工具(约五十个:场景、Play、打开和保存、截图、日志)一开始就列出;其余分在若干组里,代理需要时用 `enable_tools` 打开:`assets`、`prefab`、`authoring`、`view`、`play`、`render`、`project`、`code`、`device` 和 `agent`。第一次调用之前就把全部工具交过去,每个会话都要多花几千 token,也更难挑出合适的那个;不管列没列出,任何工具都可以直接按名字调用。客户端跟不上工具列表变化的,加 `--all-tools`。下表列出的工具来自所有组。
+
| 领域 | 工具(节选) |
| --- | --- |
| 观察 | `get_scene_tree`、`get_inspector`、`get_stats`、`get_diagnostics`、`capture_viewport`(PNG)、`screenshot`(整窗截图,含 Play 画面)、`world_component`(活 World 探针)、`capture_frame` / `frame_draws` / `replay_draw`(帧调试器:每个 draw call、断批原因、画了哪些实体) |