viewchat_log_message
Log a chatbot or AI agent message to ViewChat. API keys, tokens, and secrets in the text are automatically redacted to [secret detected] before storage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"text": "<text>",
"conversation": "<conversation>"
},
"name": "viewchat_log_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Sender identifier (e.g. 'user@acme.com' or 'support-bot') | |
| text | Yes | Message content | |
| time | No | Optional Unix timestamp in milliseconds (defaults to current time) | |
| groups | No | Optional list of group names to organize this conversation (e.g. ['customer-support']) | |
| foreignId | No | Optional client message ID for deduplication | |
| fromAvatar | No | Optional HTTP(S) URL of the sender's avatar image | |
| conversation | Yes | Conversation name or thread key (created automatically if it does not exist) |