Class UrlParseTool
A built-in tool for parsing URLs into their components.
Extract scheme, host, port, path, query parameters, and other URL components.
public sealed class UrlParseTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
UrlParseTool
- Implements
- Inherited Members
Examples
var tool = new UrlParseTool();
registry.Register(tool);
// Agent can now: parse URLs, extract query parameters
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.