link_session
Link an AI agent session to a task so it can be resumed later. Replaces any previous link; call when starting or resuming work.
Instructions
Link the AI agent session you're working in to a task, so it can be
resumed later. agent is 'claude-code' or 'github-copilot-cli';
directory is the absolute working directory of this session; session_id
is this session's own id (used with --resume) if you know it; launcher is
the command or shell alias used to start the agent (it selects the profile,
e.g. 'claude-work') — omit to use the agent's default command. Re-linking
replaces any previous link. Call this when you start or resume work on a task.
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_id": "<task_id>",
"agent": "<agent>",
"directory": "<directory>"
},
"name": "link_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| task_id | Yes | ||
| launcher | No | ||
| directory | Yes | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||