Class EnvironmentVarTool
A built-in tool for reading environment variables and process information.
Provides access to individual environment variables, variable listing, and current process details with configurable security policies.
public sealed class EnvironmentVarTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
EnvironmentVarTool
- Implements
- Inherited Members
Examples
var tool = new EnvironmentVarTool();
registry.Register(tool);
Constructors
- EnvironmentVarTool()
Initializes a new instance with default settings.
- EnvironmentVarTool(EnvironmentToolOptions)
Initializes a new instance with custom options.
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.