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
LogLevel
required
Log level:
'debug' | 'info' | 'warning' | 'error' | 'critical'unknown
required
Log data payload.
string
Logger name for categorization.
Returns
(params: SendLogParams) => void
Function to send a log message to the host.