关于
Level Tools adds 66 tools to the s&box editor's built-in MCP server, so an AI agent connected to the editor can build levels with the engine's own systems.
- Terrain (18): create native Terrain, sculpt, stamp, noise, erosion, holes, material painting and blending, clutter, heightmap import and export.
- Mesh (26): editable MeshComponent geometry. Primitives, extrude, bevel, bridge, clip, split, thicken, dissolve, quad slice, face materials, texture alignment, vertex colour and blend.
- Navmesh (9): generate the whole navmesh or single tiles, agents, areas, links and path queries.
- Prefabs (6): create, list instances, per-property overrides, apply, revert and unlink.
- Traces (5): ray, sphere and box casts, batches and height grids, with tag filters.
- Collision rules (2): read and edit the project's collision matrix.
Why not run_csharp?
Scene edits go through the editor's undo system, inputs are validated before anything changes (with errors that say what to do instead), and every tool has a typed, searchable schema.
Install
Add it with the Library Manager, then restart the editor. Agents find the tools with search_tools and call them with call_tool.
Tested engine build: 26.11.24a. If an engine update breaks the library's compile, the project stops hotloading until the library is updated or removed.
Source (MIT): github.com/Nyx000/level-tools