sunpeak APIDocumentation Index
Fetch the complete documentation index at: https://sunpeak.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Returns a function to register tools that the host (or LLM) can call. Uses Standard Schema (Zod, ArkType, Valibot) for input/output validation. The returned handle supportsenable(), disable(), remove(), and update().
For simpler static tool registration, see useAppTools. useRegisterTool provides lower-level control with dynamic registration and Standard Schema support.
Import
Signature
RegisterToolConfig
Human-readable title for the tool.
Description of what the tool does.
Input validation schema (Zod, ArkType, Valibot, etc.).
Output validation schema.
Tool annotations (readOnly, destructive, idempotent hints).
Returns
Function to register a tool. Returns
undefined if app is not connected.RegisteredAppTool
Enable the tool.
Disable the tool.
Remove the tool registration.
Update the tool configuration.