rest-tools — @personaai/sdk
Generated field tables for rest-tools — do not edit
Generated from
sdk/typescript/dist/typedoc.json— do not edit. Regenerate withnode platform/scripts/typedoc-resources.mjs.
rest-tools
Auth: Requires
Authorization: Bearer <keyId>.<secret>(server-side). For per-user calls addx-persona-external-user-id. See .
REST tools are code-first tools via defineRestTool (zod) served as GET {mountPath}/rest-tools/manifest and discovered live as a Source.
Example
TypeScript
cURL
Response
RestApiTool
A no-code REST API tool an Agent can call. Goes through toSafeJson() — secretRef's underlying value is never returned, only hasSecret.
Source: types/restTool.ts:39
Interface
RestToolMethod
Source: types/restTool.ts:1
Kind 2097152
RestToolAuthType
Source: types/restTool.ts:2
Kind 2097152
RestToolBodyMode
Source: types/restTool.ts:3
Kind 2097152
RestToolParamIn
Source: types/restTool.ts:4
Kind 2097152
RestToolParamType
Source: types/restTool.ts:5
Kind 2097152
RestToolParamRow
One query-string or header entry. valueTemplate may contain {{token}}.
Source: types/restTool.ts:8
Interface
RestToolParamDescriptor
Declares one agent-fillable {{token}} referenced in url/params/headers/body.
Source: types/restTool.ts:17
Interface
RestToolResponseMapping
Reshapes the raw JSON response before the agent sees it, e.g. `{ field: 'name', path: '@data.user.name' }'.
Source: types/restTool.ts:29
Interface
CreateRestToolInput
Source: types/restTool.ts:66
Interface
UpdateRestToolInput
All fields optional — only what you pass is changed.
Source: types/restTool.ts:87
Kind 2097152
DiscoverRestToolsParams
Source: types/restTool.ts:92
Interface
RestToolTestResult
Source: types/restTool.ts:103
Interface
TestRestToolInput
testValues stand in for agent-fillable args (and externalUserId if referenced) — never persisted, never usable by an agent.
Source: types/restTool.ts:113
Interface