{
  "name": "@tpmjs/registry-execute",
  "version": "0.1.4",
  "description": "Execute tools from the TPMJS registry in any AI SDK agent",
  "type": "module",
  "main": "dist/index.js",
  "module": "dist/index.js",
  "types": "dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js",
      "default": "./dist/index.js"
    }
  },
  "scripts": {
    "build": "tsc",
    "dev": "tsc --watch",
    "type-check": "tsc --noEmit"
  },
  "keywords": [
    "tpmjs",
    "ai-sdk",
    "vercel-ai",
    "registry",
    "execute"
  ],
  "dependencies": {
    "ai": "6.0.49"
  },
  "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"
          ]
        }
      }
    ]
  }
}
