Declarative.Avalonia.AgentTools 12.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Declarative.Avalonia.AgentTools --version 12.0.5
                    
NuGet\Install-Package Declarative.Avalonia.AgentTools -Version 12.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Declarative.Avalonia.AgentTools" Version="12.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Declarative.Avalonia.AgentTools" Version="12.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Declarative.Avalonia.AgentTools" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Declarative.Avalonia.AgentTools --version 12.0.5
                    
#r "nuget: Declarative.Avalonia.AgentTools, 12.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Declarative.Avalonia.AgentTools@12.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Declarative.Avalonia.AgentTools&version=12.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Declarative.Avalonia.AgentTools&version=12.0.5
                    
Install as a Cake Tool

Declarative.Avalonia.AgentTools

In-process MCP (Model Context Protocol) inspector for AI agents that build UI with Avalonia.Markup.Declarative.

In a debug build it exposes the running app to an agent over loopback so the agent can close the feedback loop while iterating on a view:

  • get_visual_tree — text visual tree with names and layout bounds
  • list_components — active declarative views
  • screenshot_window / screenshot_control — PNG screenshots (image content blocks)
  • get_errors — recent build / binding / converter errors
  • invoke(optional, off by default) remote control via UI Automation: invoke / select / toggle / set / expand / collapse / focus / scroll / context_menu / key / type

Usage

var appBuilder = AppBuilder.Configure<App>()
    .UsePlatformDetect()
#if DEBUG
    .UseAgentInspector() // loopback MCP server on 127.0.0.1:5599
#endif
    .SetupWithLifetime(lifetime);

Point your agent's MCP client at the streamable-HTTP endpoint http://127.0.0.1:5599.

Dev only. Keep the call under #if DEBUG. This package pulls in the ASP.NET Core web stack and a remote-control surface; it must not ship in Release. The server binds to loopback only, and invoke stays disabled unless you set EnableInteraction = true.

See the repository's docs/agent-tools.md for the full guide.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.1.2-fix-agent.1 79 8/3/2026
12.1.1 489 8/2/2026
12.1.0 121 7/18/2026
12.0.6-preview2 115 7/8/2026
12.0.6-preview1 103 7/7/2026
12.0.5 130 7/3/2026
12.0.5-preview1 112 6/20/2026