karea_link_session
Link your AI coding session to a Karea task to record session history and obtain a resume command. Assign task, provider, and session ID to enable later continuation.
Instructions
Link your current AI coding session (Claude Code, OpenCode, Codex, Cursor, Aider) to a Karea task so the user can see the session history for that task and copy a command to resume the session later. Call this once per task you're working on. For Claude Code, pass sessionId as the CLI session id; for OpenCode use its session id; etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Task name, visual ID (C1, T2), or UUID | |
| label | No | Short human label for the session (e.g. "Feature draft", "Bug repro") | |
| provider | Yes | AI provider that owns the session | |
| projectId | No | Project name or ID (helps resolve visual IDs) | |
| sessionId | Yes | Provider session ID (used to resume). Claude Code: the id from `claude --resume`. OpenCode: the id from `opencode --session`. Codex: `codex resume`. |