# remove_widget

Remove a widget and its children. Cannot remove the root widget.

Agent View of the PolicyLayer registry record for `remove_widget`. HTML page: https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-widget

## Facts

- Tool: `remove_widget`
- Server: Unreal-MCP (`aadeshrao123/unreal-mcp`) — https://policylayer.com/tools/aadeshrao123-unreal-mcp.md
- Homepage: https://github.com/aadeshrao123/Unreal-MCP
- Risk category: Destructive (Critical risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Hidden

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_widget",
    "arguments": {}
  }
}
```

## Why remove_widget is rated Critical

This tool permanently removes UI components and their dependent children from the Unreal Engine editor state. While operating within the editor context (not production code), removal of widgets cannot be trivially undone by an agent and affects the project's UI hierarchy structure. This qualifies as Destructive rather than Write because the action is irreversible and removes rather than modifies data.

From the tool's own definition: "The tool explicitly performs a 'Remove' operation that deletes a widget and its children from the UI hierarchy."

Risk signals: Admin/system-level operation

## Use case

AI agents call remove_widget to permanently remove resources in Unreal-MCP, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

## Recommended policy (PolicyLayer)

Verdict: **Hidden**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Unreal-MCP:

```json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "remove_widget"
  ]
}
```

## Other tools on Unreal-MCP (285)

- `cleanup_material_function` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/cleanup-material-function.md
- `cleanup_material_graph` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/cleanup-material-graph.md
- `clear_niagara_module_input` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/clear-niagara-module-input.md
- `delete_actor` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-actor.md
- `delete_asset` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-asset.md
- `delete_blueprint_function` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-blueprint-function.md
- `delete_blueprint_node` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-blueprint-node.md
- `delete_data_table_row` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-data-table-row.md
- `delete_material_expression` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-material-expression.md
- `delete_niagara_graph_node` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-niagara-graph-node.md
- `delete_niagara_scratch_pad_module` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-niagara-scratch-pad-module.md
- `delete_niagara_system` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/delete-niagara-system.md
- `remove_input_action_modifier` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-input-action-modifier.md
- `remove_input_action_trigger` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-input-action-trigger.md
- `remove_key_mapping` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-key-mapping.md
- `remove_mapping_modifier` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-mapping-modifier.md
- `remove_mapping_trigger` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-mapping-trigger.md
- `remove_mass_config_trait` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-mass-config-trait.md
- `remove_niagara_custom_hlsl_pin` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-custom-hlsl-pin.md
- `remove_niagara_emitter` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-emitter.md
- `remove_niagara_module` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-module.md
- `remove_niagara_node_pin` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-node-pin.md
- `remove_niagara_renderer` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-renderer.md
- `remove_niagara_script_parameter` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-script-parameter.md
- `remove_niagara_user_parameter` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-niagara-user-parameter.md
- `remove_statetree_binding` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-statetree-binding.md
- `remove_statetree_node` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-statetree-node.md
- `remove_statetree_parameter` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-statetree-parameter.md
- `remove_statetree_state` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-statetree-state.md
- `remove_statetree_transition` — Destructive — https://policylayer.com/tools/aadeshrao123-unreal-mcp/remove-statetree-transition.md
- …and 255 more: https://policylayer.com/tools/aadeshrao123-unreal-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=aadeshrao123-unreal-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/aadeshrao123-unreal-mcp
