Configures and registers agent tools in TrustGraph.
Synopsis
tg-set-tool --id ID --name NAME --type TYPE --description DESC [options]
Description
The tg-set-tool command creates or updates agent tool configurations. Tools define capabilities that agents can use to perform specific tasks and operations. Supports multiple tool types with parameterized arguments.
tg-set-tool --id weather --name"Weather Lookup"\--type knowledge-query \--description"Get weather information for locations"\--collection weather-data \--argument location:string:"Location to query"\--argument units:string:"Temperature units (C/F)"
tg-set-tool --id text-generator --name"Text Generator"\--type text-completion \--description"Generate text content based on prompts"\--argument prompt:string:"Text prompt for generation"\--argument max_length:number:"Maximum length of generated text"
Prompt Template Tool
tg-set-tool --id email-writer --name"Email Writer"\--type prompt \--description"Generate professional emails using templates"\--template email-template \--argument recipient:string:"Email recipient name"\--argument subject:string:"Email subject"