v1.0
package.json

TPMJS Specification

1

Minimal Configuration

Add the tpmjs keyword and field to your package.json. Tools are auto-discovered from your exports.

{
  "name": "@yourname/my-tool",
  "version": "1.0.0",
  "keywords": ["tpmjs"],
  "tpmjs": {
    "category": "text-analysis"
  }
}
*

category (required)

One of the following predefined categories:

researchwebdatadocumentationengineeringsecuritystatisticsopsagentsandboxutilitieshtmlcomplianceweb-scrapingdata-processingfile-operationscommunicationdatabaseapi-integrationimage-processingtext-analysisautomationai-mlmonitoringdoctext
?

tools (optional)

Explicit tool definitions. If omitted, tools are auto-discovered from your exports.

"tools": [
  {
    "name": "functionName",        // Export name (required)
    "description": "What it does"  // Optional, auto-extracted if omitted
  }
]
?

env (optional)

Environment variables required by your tools:

"env": [
  {
    "name": "API_KEY",              // Variable name (required)
    "description": "Your API key",  // What it's for (required)
    "required": true                // Default: true
  }
]
?

frameworks (optional)

Compatible AI frameworks:

vercel-ailangchainllamaindexhaystacksemantic-kernel