Ansight.Tools.VisualTree
1.6.3
dotnet add package Ansight.Tools.VisualTree --version 1.6.3
NuGet\Install-Package Ansight.Tools.VisualTree -Version 1.6.3
<PackageReference Include="Ansight.Tools.VisualTree" Version="1.6.3" />
<PackageVersion Include="Ansight.Tools.VisualTree" Version="1.6.3" />
<PackageReference Include="Ansight.Tools.VisualTree" />
paket add Ansight.Tools.VisualTree --version 1.6.3
#r "nuget: Ansight.Tools.VisualTree, 1.6.3"
#:package Ansight.Tools.VisualTree@1.6.3
#addin nuget:?package=Ansight.Tools.VisualTree&version=1.6.3
#tool nuget:?package=Ansight.Tools.VisualTree&version=1.6.3
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 PolyForm Shield 1.0.0. It permits use, modification and redistribution for purposes allowed by the licence, which excludes providing competing products. Local development features require no Ansight account or subscription.
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.query_nodes, ui.inspect_node, ui.wait, ui.get_screenshot, ui.get_overlay, and ui.query_overlays. ui.query_nodes returns snapshot-scoped references with source, snapshotId, revision, and nodeId. A superseded reference fails explicitly with stale_node_reference.
Visual-tree capture is provider-based. VisualTreeProviderRegistry always exposes the platform hierarchy as the native source, and additional UI frameworks can register independent sources. Ansight.Tools.Maui registers maui. Pass source to ui.get_visual_tree or ui.inspect_node to select one; omitting it preserves the native behavior. Local features such as Ansight.Annotations query the same registry and can capture every registered source without invoking remote tools.
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 invoke ui.perform_action or 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_overlaycreates one or more highlight rectangles from explicit window coordinates, visual-tree coordinates, or anodeId.ui.update_overlayedits an existing overlay by id. Omitted fields keep their current values; supplied geometry replaces the current rectangles.ui.get_overlayreturns a single overlay by id.ui.query_overlayslists overlays and can filter by metadata key/value.ui.remove_overlayremoves one overlay by id.ui.clear_overlaysremoves 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 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 | Versions 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. |
-
net9.0
- Ansight.Core (>= 1.6.3)
-
net9.0-android35.0
- Ansight.Core (>= 1.6.3)
-
net9.0-ios18.0
- Ansight.Core (>= 1.6.3)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 1.6.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Ansight.Tools.VisualTree:
| Package | Downloads |
|---|---|
|
Ansight
.NET and MAUI SDK for Ansight: runtime evidence from your app for coding agents. Screenshots, visual trees, logs, network, telemetry, and app state, with pairing and remote tools included. |
|
|
Ansight.Tools.Maui
.NET MAUI page, visual tree, XAML, binding, resource, navigation, layout, handler, and interaction tools for the Ansight .NET SDK. |
|
|
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.6.3 | 63 | 10/1/2026 |
| 1.6.2 | 97 | 10/1/2026 |
| 1.6.1 | 165 | 9/23/2026 |
| 1.6.0 | 153 | 9/17/2026 |
| 1.5.0 | 157 | 9/14/2026 |
| 1.4.0 | 181 | 9/7/2026 |
| 1.4.0-preview.5 | 121 | 8/26/2026 |
| 1.4.0-preview.3 | 101 | 8/25/2026 |
| 1.4.0-preview.1 | 109 | 8/24/2026 |
| 1.3.0-preview.12 | 110 | 8/24/2026 |
| 1.3.0-preview.11 | 111 | 8/23/2026 |
| 1.3.0-preview.10 | 107 | 8/21/2026 |
| 1.3.0-preview.9 | 108 | 8/20/2026 |
| 1.3.0-preview.8 | 117 | 8/20/2026 |
| 1.3.0-preview.6 | 123 | 8/19/2026 |
| 1.3.0-preview.5 | 110 | 8/19/2026 |
| 1.3.0-preview.4 | 99 | 8/17/2026 |
| 1.3.0-preview.3 | 105 | 8/10/2026 |
| 1.3.0-preview.2 | 85 | 8/10/2026 |
| 1.3.0-preview.1 | 99 | 8/10/2026 |