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.
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) |