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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"provider": "<provider>",
"sessionId": "<sessionId>"
},
"name": "karea_link_session"
}
}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`. |