# execute

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-inspect/function-execute/

**function** · [`ferroui-inspect`](/docs/0.5.0/api/ferroui-inspect/) · v0.5.0

```rust
fn execute(name: &str, args: &serde_json::Value, permissions: Permissions) -> InspectResult
```

Executes an MCP tool on the shared inspector of this thread (`Inspector::shared`). The
inspector is held only while it reads or changes the objects: an input tool resolves its node,
releases the inspector and then delivers the input, so that the handlers of the application,
which may run a nested dispatcher frame, can reach the inspector again (through another
server, for example).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Inspect/lib.rs#L896)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
