- Update TpmjsToolDefinitionSchema to only use 'name' field - Add 'sandbox' as valid category for sprites tools - Update all package.json files to use 'name' instead of 'exportName' - Update documentation and source files accordingly - Add 11 new sprites tools for sandbox/code-execution
83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
|
"name": "@tpmjs/registry-execute",
|
|
"version": "0.1.3",
|
|
"description": "Execute tools from the TPMJS registry in any AI SDK agent",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"keywords": [
|
|
"tpmjs",
|
|
"ai-sdk",
|
|
"vercel-ai",
|
|
"registry",
|
|
"execute"
|
|
],
|
|
"dependencies": {
|
|
"ai": "6.0.23"
|
|
},
|
|
"devDependencies": {
|
|
"@tpmjs/tsconfig": "workspace:*",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ajaxdavis/tpmjs.git",
|
|
"directory": "packages/tools/registryExecute"
|
|
},
|
|
"homepage": "https://tpmjs.com",
|
|
"license": "MIT",
|
|
"tpmjs": {
|
|
"category": "api-integration",
|
|
"frameworks": [
|
|
"vercel-ai"
|
|
],
|
|
"tools": [
|
|
{
|
|
"name": "registryExecuteTool",
|
|
"description": "Execute a tool from the TPMJS registry by toolId. Use registrySearchTool first to find toolIds.",
|
|
"parameters": [
|
|
{
|
|
"name": "toolId",
|
|
"type": "string",
|
|
"description": "Tool identifier from registrySearchTool (format: 'package::name')",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "params",
|
|
"type": "object",
|
|
"description": "Parameters to pass to the tool",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "env",
|
|
"type": "object",
|
|
"description": "Environment variables (API keys) if required by the tool",
|
|
"required": false
|
|
}
|
|
],
|
|
"returns": {
|
|
"type": "object",
|
|
"description": "Tool execution result with output and timing"
|
|
},
|
|
"aiAgent": {
|
|
"useCase": "Use after finding a tool with registrySearchTool. Execute the tool by its toolId with the required parameters.",
|
|
"examples": [
|
|
"Execute '@exalabs/ai-sdk::webSearch' with query parameter",
|
|
"Execute '@firecrawl/ai-sdk::scrapeTool' with url parameter"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|