knowledge_sync_session
Ingest user inputs from an opencode session into a searchable knowledge store, using a session ID or workspace directory to capture recent chat context for retrieval.
Instructions
Ingest an opencode session's user inputs (or the latest active session) into the knowledge store as searchable documents. Use with the session id from opencode, or omit session_id and pass directory to auto-pick the most recent session in that workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Only ingest the first N user messages | |
| directory | No | Workspace path used to pick the latest session when session_id is omitted (defaults to the server's working directory) | |
| session_id | No | opencode session id; omit to use the latest active session |