Skip to main content

session_end

Family: Sessions — one bounded sitting of governed work — start, end, resume, inspect. See Sessions.

End a Vyasa session.

@mcp.tool()
def session_end(
dir: str,
session_id: str,
force: bool = False,
) -> str

Parameters

NameTypeRequired
dirstryes
session_idstryes
forceboolno (default False)

Returns str.

Call shape

Fill your values; omit optional parameters:

{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "session_end",
"arguments": {
"dir": "...",
"session_id": "...",
"force": false
}
}
}