TnsAI
Tools

Tool Catalog

The Tools module provides 152 ready-to-use tools across 37 categories. All tools extend `AbstractTool`, are discoverable via SPI, and can be registered with any agent using `AgentBuilder.tool()`.

For creating your own tools, see Custom Tools.

Quick Start

// Register tools with an agent
Agent agent = AgentBuilder.create()
    .llm(LLMClientFactory.create("openai", "gpt-4o", 0.7f))
    .role(myRole)
    .tool(new BraveSearchTool())
    .tool(new CalculatorTool())
    .tool(new WikipediaTool())
    .build();

// The LLM will call tools automatically during conversation
String response = agent.chat("What is the population of Tokyo? Calculate 3x that number.");

Tools require API keys via environment variables:

export BRAVE_API_KEY=your-key
export SERPAPI_API_KEY=your-key

Search (18 tools)

Search tools let your agent find information on the web, in knowledge bases, and across package registries. Some require an API key (set as an environment variable), while others work out of the box.

ToolDescriptionAPI Key
BraveSearchToolFast web search via Brave APIBRAVE_API_KEY
DuckDuckGoToolPrivacy-focused web searchNone
SerpApiToolGoogle search resultsSERPAPI_API_KEY
TavilyToolAI-optimized searchTAVILY_API_KEY
WikipediaToolWikipedia article searchNone
WikidataToolStructured knowledge baseNone
HackerNewsToolHacker News stories and commentsNone
SearXNGToolSelf-hosted meta searchNone
NPMToolNPM package searchNone
MavenCentralToolMaven artifact searchNone
WebScraperToolExtract content from web pagesNone
ExaSearchToolNeural search APIEXA_API_KEY
YahooFinanceToolFinancial data and stock quotesNone
StackOverflowSearchToolStack Overflow Q&ANone
WolframAlphaToolComputational knowledgeWOLFRAM_API_KEY
FirecrawlToolWeb scraping and crawlingFIRECRAWL_API_KEY
HeadlessBrowserToolBrowser-based scrapingNone
WebCrawlerToolMulti-page web crawlingNone

Academic (19 tools)

Academic tools give your agent access to scholarly papers, preprints, citation data, and researcher profiles. They are useful for research assistants, literature review agents, and scientific Q&A.

ToolDescriptionAPI Key
ArxivToolarXiv preprint searchNone
PubMedToolBiomedical literatureNone
SemanticScholarToolAcademic paper searchS2_API_KEY
GoogleScholarToolGoogle Scholar searchNone
CrossRefToolDOI and citation metadataNone
OpenAlexToolOpen scholarly metadataNone
PapersWithCodeToolML papers with codeNone
IEEEXploreToolIEEE publicationsIEEE_API_KEY
DBLPToolCS bibliographyNone
BioRxivToolBiology preprintsNone
MedRxivToolMedical preprintsNone
PubChemToolChemical compound dataNone
ORCIDToolResearcher profilesNone
UnpaywallToolOpen access article finderNone
CORESearchToolOpen access aggregatorCORE_API_KEY
DimensionsToolResearch analyticsDIMENSIONS_API_KEY
LensOrgToolPatent and scholarly searchLENS_API_KEY
ConnectedPapersToolPaper citation graphNone
AlphaXivToolarXiv paper ratingsNone

File (10 tools)

File tools let your agent read, write, and transform files on the local filesystem. This includes plain text, PDFs, CSV, JSON, and XML formats.

ToolDescription
FileReadToolRead file contents
FileWriteToolWrite content to files
PDFExtractorToolExtract text from PDFs
PDFMergeToolMerge multiple PDFs
PDFSplitToolSplit PDFs by page range
PDFCompressToolCompress PDF file size
PDFToImageToolConvert PDF pages to images
CSVParserToolParse and query CSV data
JSONQueryToolQuery JSON with expressions
XMLParserToolParse and extract XML data

Communication (7 tools)

Communication tools allow your agent to send emails, post messages to Slack or Discord, and send SMS. Each tool requires credentials for the corresponding service.

ToolDescriptionAPI Key
EmailSenderToolSend emails via SMTPSMTP config
GmailToolSend emails via Gmail APIGMAIL_CREDENTIALS
GmailInboxToolRead Gmail inboxGMAIL_CREDENTIALS
SlackWebhookToolPost to Slack channelsSLACK_WEBHOOK_URL
DiscordWebhookToolPost to Discord channelsDISCORD_WEBHOOK_URL
TwilioSMSToolSend SMS messagesTWILIO_ACCOUNT_SID
TwilioStatusToolCheck SMS delivery statusTWILIO_ACCOUNT_SID

FinTech (8 tools)

FinTech tools enable your agent to process payments, create invoices, and manage product catalogs through services like Square, Cash App, and Lightning Network.

ToolDescriptionAPI Key
SquarePaymentToolProcess payments via SquareSQUARE_ACCESS_TOKEN
SquareInvoiceToolCreate Square invoicesSQUARE_ACCESS_TOKEN
SquareCatalogToolManage Square product catalogSQUARE_ACCESS_TOKEN
SquareCustomerToolSquare customer managementSQUARE_ACCESS_TOKEN
CashAppPayToolCash App paymentsCASHAPP_API_KEY
LightningNetworkToolBitcoin Lightning paymentsLN_MACAROON
AfterpayCheckoutToolBuy-now-pay-later checkoutAFTERPAY_API_KEY
PaymentAnalyticsToolPayment analytics dashboardVaries

Database (4 tools)

Database tools let your agent query SQL databases, MongoDB collections, Redis key-value stores, and vector databases directly. Each tool needs a connection string or URL configured as an environment variable.

ToolDescriptionConfig
SQLQueryToolExecute SQL queriesJDBC_URL
MongoDBQueryToolMongoDB document queriesMONGODB_URI
RedisToolRedis key-value operationsREDIS_URL
VectorDBToolVector database searchVaries

Developer (4 tools)

Developer tools help your agent interact with code repositories, execute Java snippets, analyze project structure, and manage dependencies.

ToolDescriptionAPI Key
GitHubSearchToolSearch GitHub repos and codeGITHUB_TOKEN
JShellToolExecute Java code snippetsNone
ProjectAnalyzerToolAnalyze project structureNone
DependencyManagerToolManage project dependenciesNone

Productivity (5 tools)

Productivity tools connect your agent to popular project management and workspace platforms like Google Calendar, Google Drive, Notion, Trello, and Jira.

ToolDescriptionAPI Key
GoogleCalendarToolGoogle Calendar eventsGOOGLE_CREDENTIALS
GoogleDriveToolGoogle Drive filesGOOGLE_CREDENTIALS
NotionToolNotion pages and databasesNOTION_API_KEY
TrelloToolTrello boards and cardsTRELLO_API_KEY
JiraToolJira issues and projectsJIRA_API_TOKEN

Media (5 tools)

Media tools handle audio processing, including speech-to-text transcription and text-to-speech synthesis. They are useful for building voice-enabled agents.

ToolDescriptionAPI Key
WhisperToolSpeech-to-text (OpenAI Whisper)OPENAI_API_KEY
AudioTranscriptionToolAudio transcriptionVaries
TextToSpeechToolText-to-speech synthesisVaries
ChatterboxTTSToolChatterbox TTS engineNone
ChatterboxStreamingToolStreaming TTS outputNone

Social (4 tools)

Social tools let your agent interact with social media platforms -- posting tweets, browsing Reddit, and retrieving LinkedIn data.

ToolDescriptionAPI Key
TwitterToolPost and search tweetsTWITTER_BEARER_TOKEN
RedditToolReddit posts and commentsREDDIT_CLIENT_ID
RedditAnalysisToolReddit trend analysisREDDIT_CLIENT_ID
LinkedInToolLinkedIn profile dataLINKEDIN_ACCESS_TOKEN

Utility (5 tools)

Utility tools provide common helper functions that agents frequently need, such as math calculations, date/time operations, hashing, QR codes, and translation.

ToolDescriptionAPI Key
CalculatorToolMathematical expressionsNone
DateTimeToolDate/time operationsNone
HashingToolHash generation (MD5, SHA)None
QRCodeToolQR code generationNone
GoogleTranslateToolText translationGOOGLE_TRANSLATE_KEY

Diagram (3 tools)

Diagram tools let your agent generate visual diagrams and architecture charts programmatically, without needing a manual drawing tool.

ToolDescription
MermaidToolGenerate Mermaid diagrams
ExcalidrawToolCreate Excalidraw drawings
ICraft3DTool3D architecture diagrams

Code Execution (3 tools)

Code execution tools let your agent run code snippets in sandboxed environments. This is useful for agents that need to compute results, test code, or process data dynamically.

ToolDescriptionAPI Key
CodeExecutionToolSandboxed code execution (GraalVM)None
PythonExecutionToolPython code executionNone
E2BSandboxToolCloud sandbox executionE2B_API_KEY

Real-time Data (3 tools)

Real-time data tools provide your agent with live information such as cryptocurrency prices, weather conditions, and currency exchange rates.

ToolDescriptionAPI Key
CryptoPriceToolCryptocurrency pricesNone
OpenWeatherMapToolWeather dataOPENWEATHER_API_KEY
CurrencyExchangeToolCurrency exchange ratesNone

Visualization (3 tools)

Visualization tools let your agent produce charts, data tables, and infographics from structured data, turning raw numbers into visual outputs.

ToolDescription
AutoChartToolAutomatic chart generation
DataTableToolData table rendering
InfographicToolInfographic generation

Agentic (4 tools)

Agentic tools are meta-level tools that enable higher-order agent behaviors -- delegating work to sub-agents, summarizing documents intelligently, and conducting multi-step research.

ToolDescription
AgenticToolMeta-tool for agent delegation
SmartSummarizerToolIntelligent document summarization
DeepResearcherToolMulti-step deep research
ToolContextShared context between tools

AI / Self-Evolution (1 tool)

The self-evolution tool allows an agent to learn from past interactions by recording feedback, optimizing its prompts, and extracting reusable skills -- all without external services.

ToolDescriptionAPI Key
SelfEvolutionToolEnable agents to learn and improve over timeNone

SelfEvolutionTool provides nine operations for prompt optimization and agent self-improvement, based on research in self-evolving agents (EvoAgentX, TextGrad, DSPy).

OperationDescription
optimize_promptImprove a prompt based on collected feedback history
mutate_promptGenerate prompt variations (strategies: paraphrase, elaborate, simplify, specialize, constrain, all)
record_feedbackRecord success/failure feedback with optional reason and rating
learn_skillExtract reusable skills from successful execution traces
get_performanceGet performance metrics (success rate, average rating, trends)
suggest_improvementGet improvement suggestions based on feedback patterns
list_skillsList all learned skills
get_skillGet details of a specific learned skill
apply_skillApply a learned skill's action sequence to a context

Data (feedback, skills, performance) is persisted to ~/.tnsai/evolution/. No external API key required.

Agent agent = AgentBuilder.create()
    .llm(client)
    .role(myRole)
    .tool(new SelfEvolutionTool())
    .build();

// The agent can now record feedback and optimize its own prompts
agent.chat("{\"operation\": \"record_feedback\", \"prompt_id\": \"research\", \"success\": true, \"rating\": 4}");
agent.chat("{\"operation\": \"optimize_prompt\", \"prompt_id\": \"research\", \"prompt\": \"Research the topic\"}");

Document (5 tools)

Document tools handle reading, converting, and generating documents. They can extract text from URLs and files, convert between formats, and create slide presentations.

ToolDescriptionAPI Key
DocumentReaderToolExtract text from URLs and files (HTML, Markdown, PDF)None
ImageConverterToolConvert between image formatsNone
MarkdownConverterToolConvert documents to MarkdownNone
SlideToolGenerate slide presentationsNone

DocumentReaderTool

Extracts plain text from URLs and local files. Supports HTML (strips tags, extracts body text), Markdown (renders to text), and PDF (text extraction).

Agent agent = AgentBuilder.create()
    .llm(client)
    .tool(new DocumentReaderTool())
    .build();

// Read from URL
agent.chat("Read and summarize https://example.com/article");

// Read local file
agent.chat("Extract text from /path/to/report.pdf");

The tool accepts a source parameter (URL or file path) and returns the extracted text content. For HTML pages, it strips scripts, styles, and navigation elements to return clean body text.

Additional Categories

Beyond the main categories above, TnsAI includes specialized tool groups for e-commerce, system integration, scraping, AI vision, finance, CRM, knowledge graphs, and external memory.

CategoryToolsDescription
CommerceACPClientTool, ShopifyACPTool, EtsyACPToolE-commerce operations
GooseGitTool, ScreenshotTool, ClipboardTool, SystemInfoTool, ContextManagerTool, MemoryStoreToolSystem integration
DocumentImageConverterTool, MarkdownConverterTool, SlideToolDocument conversion
ScrapingApifyTool, ActorRegistryWeb scraping automation
AIImageAnalysisTool, VisionToCodeTool, SelfEvolutionToolVision, code generation, self-improvement
FinanceBorsaTool, PolymarketToolMarket data and trading
CRMUnifiedCRMToolCustomer relationship management
KnowledgeKnowledgeGraphToolKnowledge graph operations
MemoryReeverToolExternal memory integration

On this page