+ Execute a tool with an AI agent and receive streaming results via Server-Sent Events + (SSE). This endpoint allows you to run any TPMJS tool remotely without installing + it. +
+
+ By tool ID:{' '}
+ /api/tools/execute/clx123abc
+
+ By package and export:{' '}
+
+ /api/tools/execute/@tpmjs/hello/helloWorldTool
+
+
chunk
+ + Streaming text chunks from the AI agent response +
+tokens
+ + Token usage updates during execution +
+complete
+ + Final result with output, token breakdown, and execution time +
+error
+ + Error message if execution fails +
+X-RateLimit-Limit: 10
+ X-RateLimit-Remaining: 9
+