Ansight.Tools.VisualTree 1.0.2-preview.2

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 1.0.2-preview.2
                    
NuGet\Install-Package Ansight.Tools.VisualTree -Version 1.0.2-preview.2
                    
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="1.0.2-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ansight.Tools.VisualTree" Version="1.0.2-preview.2" />
                    
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 1.0.2-preview.2
                    
#r "nuget: Ansight.Tools.VisualTree, 1.0.2-preview.2"
                    
#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@1.0.2-preview.2
                    
#: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=1.0.2-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ansight.Tools.VisualTree&version=1.0.2-preview.2&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.

Important: Calling screenshot tools will result in an FPS drop while the current frame is captured, encoded, and transferred. Avoid screenshot-heavy investigations during performance measurements unless visual evidence is required.

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 (2)

Showing the top 2 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.

Ansight.Annotations

Opt-in, debug-only in-app feedback annotations for the Ansight SDK.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2-preview.3 65 7/7/2026
1.0.2-preview.2 67 7/6/2026
1.0.2-preview.1 65 6/30/2026
1.0.1 164 6/24/2026
0.2.0-preview.1 80 6/3/2026
0.1.0 194 5/26/2026
0.1.0-preview.24 88 5/25/2026
0.1.0-preview.23 73 5/23/2026
0.1.0-preview.22 75 5/23/2026
0.1.0-preview.21 72 5/19/2026
0.1.0-preview.20 77 5/15/2026
0.1.0-preview.19 79 5/8/2026
0.1.0-preview.18 80 5/8/2026
0.1.0-preview.17 77 5/8/2026
0.1.0-preview.16 67 5/6/2026
0.1.0-preview.15 68 5/5/2026
0.1.0-preview.14 69 5/5/2026
0.1.0-preview.13 67 5/5/2026
0.1.0-pre12 128 5/4/2026
0.1.0-pre11 133 5/4/2026
Loading failed