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
Manages persistent UI state that is automatically synced to the host viaupdateModelContext. Works like React’s useState but the state survives across conversations and is available to the AI model. Use this for user decisions, selections, or any state that should persist.
Wraps updateModelContext
MCP Apps SDK reference
Import
Signature
Parameters
Initial state value.
Returns
A tuple containing the current state and a setter function, similar to React’s
useState.