![]() |
VOOZH | about |
dotnet add package Ansight.Tools.FileSystem --version 0.1.0
NuGet\Install-Package Ansight.Tools.FileSystem -Version 0.1.0
<PackageReference Include="Ansight.Tools.FileSystem" Version="0.1.0" />
<PackageVersion Include="Ansight.Tools.FileSystem" Version="0.1.0" />Directory.Packages.props
<PackageReference Include="Ansight.Tools.FileSystem" />Project file
paket add Ansight.Tools.FileSystem --version 0.1.0
#r "nuget: Ansight.Tools.FileSystem, 0.1.0"
#:package Ansight.Tools.FileSystem@0.1.0
#addin nuget:?package=Ansight.Tools.FileSystem&version=0.1.0Install as a Cake Addin
#tool nuget:?package=Ansight.Tools.FileSystem&version=0.1.0Install as a Cake Tool
Grouped sandboxed file access tool registrations for the Ansight .NET SDK.
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.
Registered tools:
files.list_directoryfiles.read_filefiles.get_file_checksumfiles.download_filefiles.begin_binary_downloadfiles.push_filefiles.copy_filefiles.move_filefiles.delete_fileusing Ansight;
using Ansight.Tools.FileSystem;
var options = Options.CreateBuilder()
.WithFileSystemTools()
.WithReadOnlyToolAccess()
.Build();
files.get_file_checksum computes one or more hexadecimal checksums for a sandboxed file without returning file contents.
Checksum request arguments:
root: optional sandbox root aliaspath: file path relative to the rootalgorithms: optional comma-separated list of md5, sha1, sha256, sha384, sha512, crc32, or all; defaults to sha256Checksum response highlights:
fileName, fileExtension, mimeTypesizeBytes, lastModifiedUtc, versionchecksums: array of { algorithm, checksum, encoding }files.begin_binary_download is the bridge-oriented path when an MCP caller wants the SDK to stream raw bytes over the pairing WebSocket and materialize the file in a caller-chosen local temp directory. The app SDK does not choose or know that temp path; it only returns metadata and then emits binary frames keyed by a transferId.
Binary download request arguments:
root: optional sandbox root aliaspath: file path relative to the rootchunkBytes: maximum bytes to include in each binary websocket framedownloadId: optional caller-supplied correlation id for mapping the transfer to a local temp fileBinary download response highlights:
downloadId, transferIdfileName, fileExtension, mimeTypesizeBytes, lastModifiedUtc, versiondeliveryMode = websocket_binarywireProtocol = ansight.file-transfer.v1The consuming MCP bridge is expected to:
files.begin_binary_downloadtransferId to that local temp fileASFT binary frames into the chosen file until the complete frame arrivesfiles.download_file remains available as a JSON fallback when the caller cannot consume binary websocket frames. It stays inside the configured sandbox roots, returns best-effort file metadata for tool selection, and pages large files through ordinary tool.result payloads.
JSON fallback request arguments:
root: optional sandbox root aliaspath: file path relative to the rootoffsetBytes: starting byte offset for the chunkmaxBytes: maximum bytes to return for the chunkencoding: auto, utf8, or base64expectedVersion: optional version token from a prior chunkJSON fallback response highlights:
fileName, fileExtension, mimeTypesizeBytes, lastModifiedUtc, versionoffsetBytes, bytesRead, hasMore, nextOffsetBytescontentType, encoding, and either text or base64nextRequest, which contains the next tool.call payload to continue the download safelyfiles.push_file writes caller-provided content into a folder under an approved sandbox root. MCP bridges should pass arbitrary files as contentBase64; text is available for UTF-8 text payloads.
Push request arguments:
root: optional sandbox root aliasdirectoryPath: destination folder path relative to the rootfileName: destination file name, not a pathcontentBase64 or text: provide exactly oneoverwrite: replace an existing filecreateDirectory: create the destination folder when missingfiles.copy_file and files.move_file accept:
root: optional source sandbox root aliassourcePath: source file path relative to the source rootdestinationRoot: optional destination sandbox root aliasdestinationPath: destination file path relative to the destination rootoverwrite: replace an existing destination filecreateDirectory: create the destination folder when missingfiles.delete_file accepts root and path and is delete-scoped. Use WithAllToolAccess() or a custom ToolGuard if you want delete operations to execute. files.push_file, files.copy_file, and files.move_file are write-scoped and require WithReadWriteToolAccess(), WithAllToolAccess(), or a custom write-enabled guard.
Configure additional tagged roots:
using Ansight;
using Ansight.Tools.FileSystem;
var options = Options.CreateBuilder()
.WithFileSystemTools(fileSystem =>
{
fileSystem.AddRoot("logs", "/absolute/path/to/logs");
})
.WithReadOnlyToolAccess()
.Build();
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 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 net9.0-maccatalyst18.0 is compatible. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Ansight.Tools.FileSystem:
| Package | Downloads |
|---|---|
|
Ansight
All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-preview.1 | 60 | 6/3/2026 |
| 0.1.0 | 149 | 5/26/2026 |
| 0.1.0-preview.24 | 74 | 5/25/2026 |
| 0.1.0-preview.23 | 61 | 5/23/2026 |
| 0.1.0-preview.22 | 66 | 5/23/2026 |
| 0.1.0-preview.21 | 63 | 5/19/2026 |
| 0.1.0-preview.20 | 68 | 5/15/2026 |
| 0.1.0-preview.19 | 73 | 5/8/2026 |
| 0.1.0-preview.18 | 69 | 5/8/2026 |
| 0.1.0-preview.17 | 59 | 5/8/2026 |
| 0.1.0-preview.16 | 63 | 5/6/2026 |
| 0.1.0-preview.15 | 59 | 5/5/2026 |
| 0.1.0-preview.14 | 69 | 5/5/2026 |
| 0.1.0-preview.13 | 58 | 5/5/2026 |
| 0.1.0-pre9 | 123 | 5/3/2026 |
| 0.1.0-pre8 | 99 | 5/3/2026 |
| 0.1.0-pre7 | 92 | 4/30/2026 |
| 0.1.0-pre12 | 122 | 5/4/2026 |
| 0.1.0-pre11 | 130 | 5/4/2026 |
| 0.1.0-pre10 | 122 | 5/3/2026 |