Search prefabs
prefab_searchFind prefab definitions by name, mesh, script or tag to retrieve their XML for scene editing. Use exact names to add prefabs with scene_edit.
Instructions
Searches prefab definitions (Modules//Prefabs/.xml — what the editor's prefab browser shows) by name, mesh, script or tag. name= returns the prefab's XML. Use the names with scene_edit action=add prefab=….
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prefab_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag used by the prefab. | |
| mesh | No | Substring of a mesh used by the prefab. | |
| name | No | Exact prefab name to show in full. | |
| limit | No | Max rows (default 40). | |
| query | No | Substring (or /regex/) of the prefab name. | |
| module | No | Module filter (id, comma list, official, mods). | |
| offset | No | Skip rows. | |
| script | No | Script component name used by the prefab. |