# tools/scratchpad_tools.py — Legacy tab context only (PyObjC app / backend).
# Agent-facing scratchpad LangChain tools were removed; use Vault tools in capture_tools.
from __future__ import annotations

_scratchpad_tab_id: str | None = None


def set_scratchpad_tab_id(tab_id: str | None) -> None:
    """Set the tab id for legacy scratchpad/research context. Called before agent runs when applicable."""
    global _scratchpad_tab_id
    _scratchpad_tab_id = tab_id
