- Create @tpmjs/registrySearch package for searching tool registry - Create @tpmjs/registryExecute package for executing tools via sandbox - Support self-hosted registries via TPMJS_API_URL and TPMJS_EXECUTOR_URL env vars - Add /sdk documentation page with usage examples and architecture - Add SDK link to navigation menu - Include design doc for registry SDK architecture 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@tpmjs/registrySearch
Search the TPMJS tool registry from any AI SDK agent. Discover thousands of tools dynamically.
Installation
npm install @tpmjs/registrySearch
# or
pnpm add @tpmjs/registrySearch
Usage
import { Agent } from 'ai';
import { registrySearchTool } from '@tpmjs/registrySearch';
import { registryExecuteTool } from '@tpmjs/registryExecute';
const agent = new Agent({
model: 'anthropic/claude-sonnet-4-20250514',
tools: {
registrySearch: registrySearchTool,
registryExecute: registryExecuteTool,
},
});
// The agent can now:
// 1. Search for tools: registrySearch({ query: "web scraping" })
// 2. Execute found tools: registryExecute({ toolId: "@firecrawl/ai-sdk::scrapeTool", params: { url: "..." } })
Tool: registrySearchTool
Search the TPMJS registry to find AI SDK tools.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Search query (keywords, tool names, descriptions) |
category |
string | No | Filter by category |
limit |
number | No | Max results (1-20, default 5) |
Categories
web-scrapingdata-processingfile-operationscommunicationdatabaseapi-integrationimage-processingtext-analysisautomationai-mlsecuritymonitoring
Returns
{
"query": "web scraping",
"matchCount": 3,
"tools": [
{
"toolId": "@firecrawl/ai-sdk::scrapeTool",
"name": "scrapeTool",
"package": "@firecrawl/ai-sdk",
"description": "Scrape any website into clean markdown",
"category": "web-scraping",
"requiredEnvVars": ["FIRECRAWL_API_KEY"],
"healthStatus": "HEALTHY",
"qualityScore": 0.9
}
]
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
TPMJS_API_URL |
https://tpmjs.com |
Base URL for the registry API |
Self-Hosted Registry
To use your own TPMJS registry:
export TPMJS_API_URL=https://registry.mycompany.com
Related
- @tpmjs/registryExecute - Execute tools found with this package
- TPMJS Registry - Browse all available tools
License
MIT