UpdateToolBody

Request body for updating a Tool.

Definition

TypeScript
interface UpdateToolBody {
  name?: string | undefined;
  description?: string | undefined;
  functionId?: string | undefined;
  functionVersionId?: string | null | undefined;
  inputSchemaId?: string | undefined;
  outputSchemaId?: string | undefined;
  examples?:
    | Array<{ args: Record<string, unknown>; result?: unknown }>
    | null
    | undefined;
  requiresConfirmation?: boolean | undefined;
  enabled?: boolean | undefined;
  runtimeUserId?: string | null | undefined;
}

Fields

FieldTypeNotes
namestring | undefinedoptional — New LLM-facing name.
descriptionstring | undefinedoptional — New description.
functionIdstring | undefinedoptional — Repoint the tool at a different workspace function. Only valid for server-target tools. Must belong to the same workspace. Changing the function clears any existing functionVersionId pin unless one is provided in the same update.
functionVersionIdstring | null | undefinedoptional — Update the pinned version. Pass null to unpin (follow defaultVersionId again).
inputSchemaIdstring | undefinedoptional — Updated input schema.
outputSchemaIdstring | undefinedoptional — Updated output schema.
examplesArray<{ args: Record<string, unknown>; result?: unknown; }> | null | undefinedoptional — Update few-shot examples. Pass null to clear.
requiresConfirmationboolean | undefinedoptional — Toggle the confirmation requirement.
enabledboolean | undefinedoptional — Toggle the enabled flag.
runtimeUserIdstring | null | undefinedoptional — Override the workspace default service user as the runtime caller when this tool's underlying function is invoked. Null clears the override. Workspace-admin-only to set.