route_to_journal
Automatically route journal entries to the correct project's database. Specify a project ID explicitly or let it auto-detect from context to log entries under the right project.
Instructions
Route a piece of text to the correct project's journal database.
Returns the project the entry was routed to, the journal entry ID, and storage location.
USE WHEN: the user wants to log something and you want it filed under the right project automatically. NOT FOR: identifying the project without writing — use identify_project. ALTERNATIVES: passing project_id explicitly to skip auto-detection.
BEHAVIOR: SIDE EFFECT — writes a row to the per-project journal SQLite database. Idempotent only if you pass the same content + project pair. Auto-detects the project via identify_project + get_active_project blend when project_id is omitted.
PARAMETERS: text: journal entry content. Required, non-empty. project_id: explicit project slug to route to. Omit to auto-detect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| project_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |