Class DocumentAttachmentExtractTool
A built-in tool for extracting embedded attachments from documents.
Enables agents to list and save embedded files from PDF, EML, and MBOX documents.
public sealed class DocumentAttachmentExtractTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
DocumentAttachmentExtractTool
- Implements
- Inherited Members
Examples
Asking an agent to harvest attachments from a mail archive:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Document;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new DocumentAttachmentExtractTool()))
.Build();
var result = await agent.RunAsync(@"Save every attachment from C:\inbox\thread.eml into C:\inbox\out");
Properties
- Description
Gets a concise description of what the tool does.
- InputSchema
Gets the JSON Schema defining the expected input arguments.
- Name
Gets the stable, unique identifier for this tool.
Methods
- InvokeAsync(string, CancellationToken)
Executes the tool with the specified JSON arguments.