Dmon.Tools.Dmail
0.2.0
dotnet add package Dmon.Tools.Dmail --version 0.2.0
NuGet\Install-Package Dmon.Tools.Dmail -Version 0.2.0
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="Dmon.Tools.Dmail" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dmon.Tools.Dmail" Version="0.2.0" />
<PackageReference Include="Dmon.Tools.Dmail" />
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 Dmon.Tools.Dmail --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Dmon.Tools.Dmail, 0.2.0"
#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 Dmon.Tools.Dmail@0.2.0
#: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=Dmon.Tools.Dmail&version=0.2.0
#tool nuget:?package=Dmon.Tools.Dmail&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Dmon.Tools.Dmail
A dmon extension that gives an agent access to the user's email via the Dmail HTTP API.
Tools
| Tool | Purpose |
|---|---|
search_email |
Hybrid keyword + semantic search over subject, sender and body. Returns a ranked shortlist (uid, date, sender, subject, snippet). |
check_new_messages |
Count and list recent mail since a timestamp (defaults to the last 24 hours), newest first. |
get_email |
Fetch the full body of one message by uid. |
search_email and check_new_messages are allowed without prompting (metadata + snippets);
get_email prompts, since it exposes complete private content.
Configuration
Read from the environment by the parameterless constructor:
| Variable | Default | Notes |
|---|---|---|
DMAIL_BASE_URL |
http://localhost:8080 |
Base URL of the Dmail instance. |
DMAIL_API_KEY |
— | Sent as the X-Api-Key header. Use the key Dmail logs at startup. |
Wiring it into a composition root
#:package dmoncore@0.2.*
#:package Dmon.Tools.Dmail@0.2.*
using Dmon.Hosting;
using Dmon.Tools.Dmail;
await DmonHost.CreateBuilder(args)
.AddToolExtension<DmailExtension>() // configured from DMAIL_* env vars
.Build()
.RunAsync();
For explicit configuration instead of environment variables:
.AddToolExtension(new DmailExtension("http://localhost:8080", apiKey))
Versioning
Package Major.Minor tracks the dmon protocol version (currently 0.2).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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.
-
net10.0
- Dmon.Abstractions (>= 0.2.0)
- Dmon.Protocol (>= 0.2.0)
- Microsoft.Extensions.AI (>= 10.5.2)
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 |
|---|---|---|
| 0.2.0 | 110 | 7/13/2026 |