Skip to main content
POST
Create tool

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Body

application/json

Create a new tool definition

name
string
required
Minimum string length: 1
type
string
required
Minimum string length: 1
description
string
inputSchema
any
outputSchema
any
executionPolicy
any
credential
object

Response

Tool created

{key}
any