Send a message to the chat immediately without waiting for the current task to finish. Useful for acknowledging requests or sending progress updates while working.
Write a JSON file to the piclaw IPC directory to send a message right away.
cat > "$PICLAW_DATA/ipc/messages/msg_$(date +%s).json" <<EOF
{
"type": "message",
"chatJid": "$PICLAW_CHAT_JID",
"text": "Your message here",
"media": [
{
"path": "/absolute/path/to/chart.svg",
"content_type": "image/svg+xml",
"inline": true
}
]
}
EOF
codemedia array
{ path, content_type?, filename?, inline? }path is filesystem path to an existing filecontent_type and filename override detected valuesinline: true hints image rendering inside the message cardPICLAW_DATA — piclaw data directory (contains ipc/messages/)PICLAW_CHAT_JID — JID of the chat that triggered this invocation