Skip to main content
sunpeak API

Overview

Returns a function to send structured log messages to the host for debugging and monitoring.

Wraps sendLog

MCP Apps SDK reference

Import

Signature

SendLogParams

level
LogLevel
required
Log level: 'debug' | 'info' | 'warning' | 'error' | 'critical'
data
unknown
required
Log data payload.
logger
string
Logger name for categorization.

Returns

sendLog
(params: SendLogParams) => void
Function to send a log message to the host.

Usage