log_activity
Log an activity or event. If no session_id is provided, a session is automatically created or reused for the project. Just pass project_name and content — no need to start a session first.
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": {
"event_type": "<event_type>",
"content": "<content>"
},
"name": "log_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Source of the event (e.g. 'claude-code', 'cursor', 'user') | |
| content | Yes | Free-form content describing the activity | |
| event_type | Yes | Event type: code_change, file_edit, command_run, decision, note, conversation, discovery | |
| project_id | No | Project ID (optional if project_name is provided) | |
| session_id | No | Session ID (optional — if omitted, a session is auto-created or reused for the project) | |
| project_name | No | Project name (optional, alternative to project_id — used for auto-session) |