Skip to main content
GET
Get a tool's code
  • Business accounts only.
  • files holds the live version’s files: source team for the files its build wrote, pomerado for the files Pomerado added to run them.
  • draft holds the files your team’s draft changes from its base version, or is null when the tool has no draft.
  • A draft copies its base version. When a later version went live, such as a repair, draft.base_files holds the base version’s text of each of your team’s files that differs.
  • Another account’s tool, a catalog tool your team only added, or an archived tool is not found.
  • environment reads the tool’s version in that environment, the one it runs there, and your team’s draft there. Each environment has its own draft.
  • Callers: an API key, an MCP OAuth token or a Dashboard session.
  • Permission: tools:read.
  • Effect: Changes nothing.
  • Errors: business_account_required, not_found, environment_required, environment_not_found, and the errors any request can get.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

a tool ID: tool_ and 32 lowercase hex digits

Example:

"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Query Parameters

environment
string

On a Business team with environments: the key of the environment whose version and draft to use, such as staging. Left out, the environment your API key or MCP URL is for, else production

Response

The tool's live code and versions

integration
object
required
tool
object
required
versions
object[]
required

The tool's versions, newest first, at most 100

files
object[]
required

The live version's files, by path

input_schema
object
required

What the live version's input takes, as JSON Schema

draft
object | null
required

Your team's draft of the tool, shared by every member, or null when it has none

repair
object | null
required

Pomerado's automatic repair of the tool while one is under way after a run of it failed, whoever ran it, or null when none is