veto_session_save
Save current AI session context to SQLite with optional auto-generated summary and task state. Update existing sessions by passing session_id.
Instructions
Saves the current session context to SQLite. Set auto_summarize: true to have Veto read the full conversation and generate an accurate structured summary itself — no manual writing needed. Pass session_id to update an existing session in-place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional labels for this session (e.g. ["auth", "migration", "v1.3"]). Makes sessions searchable via veto_sessions_list query. | |
| model | No | Optional: specific model ID (e.g. "claude-sonnet-4-6", "gemini-3.5-pro", "gpt-5.1"). Veto resolves the exact context window for this model and uses it for auto-save threshold calculations. | |
| context | No | Key context to restore (decisions, current task, file list, etc.). Optional when auto_summarize is true. | |
| summary | No | A brief summary of what was accomplished. Optional when auto_summarize is true. | |
| platform | No | AI platform used (claude, gemini, codex). Defaults to "claude". | |
| session_id | No | Optional. UUID of an existing session to update in-place. When provided, Veto updates that row instead of inserting a new one — prevents session inflation when refreshing mid-conversation. | |
| task_state | No | Current task state — what is done and what is next. Optional when auto_summarize is true. | |
| project_dir | No | Absolute path to the current project directory. | |
| token_count | No | Approximate tokens used this session. Veto uses this for context window monitoring. | |
| auto_summarize | No | When true, Veto reads the full conversation context via MCP Sampling and generates summary, context, and task_state automatically — including specific file paths, decisions, and a concrete nextAction. Recommended: pass true and omit summary/context/task_state. Falls back to provided values if sampling is unavailable. | |
| connection_type | No | How you are connected to this AI — "subscription" (Claude Pro, Gemini Advanced) or "api" (API key). Used for usage tracking. |