Attach Session To Task
attach_session_to_taskAfter the user chooses a task to continue, attach the actual current session to it. Use the client and session ID from the local plugin context, never guess IDs. Pass continues: the session_id (from get_task_context) of the session you are continuing, usually the latest one you read; your session then goes on in that session's draft, so one Build shows the work of both agents. This records a private link; it does not upload or publish history.
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>",
"client": "<client>",
"session_id": "<session_id>"
},
"name": "attach_session_to_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | ||
| task_id | Yes | ||
| continues | No | The session_id of the task's session you are continuing, from get_task_context sources. | |
| session_id | Yes |