Skip to main content

session_refresh

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

Refresh session TTL.

@mcp.tool()
def session_refresh(
dir: str,
session_id: str,
ttl: int = 120,
) -> str

Parameters

NameTypeRequired
dirstryes
session_idstryes
ttlintno (default 120)

Returns str.

Call shape

Fill your values; omit optional parameters:

{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "session_refresh",
"arguments": {
"dir": "...",
"session_id": "...",
"ttl": 0
}
}
}