attach_dotnet_bridge
Injects the .NET bridge into an existing CLR process to enable UI automation for WinForms/WPF apps with custom controls that lack plain UIA exposure.
Instructions
Inject the .NET bridge into the CLR process owning the current session window. Use this after creating a session (with appTopLevelWindow) when dotnetBridge was NOT set at session creation time. Needed for WinForms/WPF apps built with custom-drawn control libraries (e.g. DevExpress) whose controls expose little or nothing via plain UIA. Only works on an already-running process — there is no launch-time injection path. Both .NET Framework (clr.dll) and CoreCLR (.NET 5+, coreclr.dll) targets are supported automatically.
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": "attach_dotnet_bridge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||