session
List, create, switch, and compact an agent's conversation histories, including in-place context compaction into durable checkpoint summaries.
Instructions
Manage multi-session conversation history and in-place context compaction for Agents in the current project. Call with op=, params={...} (use op='help' for full schema):
list(agent_id, q?): List an Agent's Hub-scoped conversation sessions (optional keyword q).
create(agent_id, title?): Create and activate a new blank conversation session for an idle Agent.
switch(agent_id, session_id): Switch an idle Agent's active conversation session.
compact(agent_id, focus?, wait?, timeout_sec?): Compact an idle Agent's active session context in-place into a durable checkpoint summary.
help(op?): Return single-source parameter specs and examples for
sessionops.
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": {
"op": "<op>"
},
"name": "session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||