Ansight.Tools.VisualTree 0.1.0-preview.17

This is a prerelease version of Ansight.Tools.VisualTree.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Ansight.Tools.VisualTree --version 0.1.0-preview.17
                    
NuGet\Install-Package Ansight.Tools.VisualTree -Version 0.1.0-preview.17
                    
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="Ansight.Tools.VisualTree" Version="0.1.0-preview.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ansight.Tools.VisualTree" Version="0.1.0-preview.17" />
                    
Directory.Packages.props
<PackageReference Include="Ansight.Tools.VisualTree" />
                    
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 Ansight.Tools.VisualTree --version 0.1.0-preview.17
                    
#r "nuget: Ansight.Tools.VisualTree, 0.1.0-preview.17"
                    
#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 Ansight.Tools.VisualTree@0.1.0-preview.17
                    
#: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=Ansight.Tools.VisualTree&version=0.1.0-preview.17&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ansight.Tools.VisualTree&version=0.1.0-preview.17&prerelease
                    
Install as a Cake Tool

Ansight.Tools.VisualTree

Grouped visual tree and screenshot tool registrations for the Ansight .NET SDK.

License

The Ansight SDK is source-available software under the Ansight SDK Source-Available License. It is not open-source software. Production use is licensed only for use with Ansight Services.

Usage

using Ansight;
using Ansight.Tools.VisualTree;

var options = Options.CreateBuilder()
    .WithVisualTreeTools()
    .WithReadOnlyToolAccess()
    .Build();

WithReadOnlyToolAccess() exposes inspection tools such as ui.get_visual_tree, ui.inspect_node, ui.get_screenshot, ui.get_overlay, and ui.query_overlays.

Use WithReadWriteToolAccess() or a custom ToolGuard when a connected host should be allowed to draw diagnostic overlays:

var options = Options.CreateBuilder()
    .WithVisualTreeTools()
    .WithReadWriteToolAccess()
    .Build();

Overlay tools render input-transparent highlight rectangles over the active native window. They never participate in hit testing, so they should not intercept taps, clicks, focus, or gestures.

  • ui.show_overlay creates one or more highlight rectangles from explicit window coordinates, visual-tree coordinates, or a nodeId.
  • ui.update_overlay edits an existing overlay by id. Omitted fields keep their current values; supplied geometry replaces the current rectangles.
  • ui.get_overlay returns a single overlay by id.
  • ui.query_overlays lists overlays and can filter by metadata key/value.
  • ui.remove_overlay removes one overlay by id.
  • ui.clear_overlays removes all overlays, or only overlays matching a metadata key/value filter.

Overlays default to no fill, a red stroke, and a 5 second lifetime. Pass durationMs=0 for an overlay that remains until removed. fillColor=none or fillColor=transparent clears fill. Each overlay can carry a small scalar metadata dictionary so MCP clients can record why the overlay exists, for example a target node id, assertion name, or investigation step.

Build-time remote tool policy

Projects that reference this package are covered by AnsightRemoteToolsPolicy. The default AllowedWithWarnings policy logs detected tool type and assembly details and emits a build warning when remote tools are included. Because this package contains remote tools, Disallowed only succeeds when the package is omitted from that build, for example with Debug-only package references. Use Allowed to bypass remote tool scanning and warnings. Set AnsightLogRemoteTools=false to suppress the detected-tool list.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-android35.0 is compatible.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-ios18.0 is compatible.  net9.0-maccatalyst was computed.  net9.0-maccatalyst18.0 is compatible.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on Ansight.Tools.VisualTree:

Package Downloads
Ansight

All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.19 52 5/8/2026
0.1.0-preview.18 54 5/8/2026
0.1.0-preview.17 52 5/8/2026
0.1.0-preview.16 50 5/6/2026
0.1.0-preview.15 49 5/5/2026
0.1.0-preview.14 52 5/5/2026
0.1.0-preview.13 52 5/5/2026
0.1.0-pre9 56 5/3/2026
0.1.0-pre8 50 5/3/2026
0.1.0-pre7 46 4/30/2026
0.1.0-pre6 53 4/30/2026
0.1.0-pre5 41 4/30/2026
0.1.0-pre4 54 4/27/2026
0.1.0-pre3 60 4/21/2026
0.1.0-pre2 73 4/4/2026
0.1.0-pre12 51 5/4/2026
0.1.0-pre11 56 5/4/2026
0.1.0-pre10 55 5/3/2026
0.1.0-pre1 59 3/31/2026