session_kind_vars
Family: Sessions — one bounded sitting of governed work — start, end, resume, inspect. See Sessions.
Record structure-kind path-template variables for a session.
variables_json is a JSON object of key → value (e.g. {"app":"shop","Name":"Cart"}). Code kinds whose structure path uses variables need these to pass validate.
@mcp.tool()
def session_kind_vars(
dir: str,
session_id: str,
variables_json: str,
) -> str
Parameters
| Name | Type | Required |
|---|---|---|
dir | str | yes |
session_id | str | yes |
variables_json | str | yes |
Returns str.
Call shape
Fill your values; omit optional parameters:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "session_kind_vars",
"arguments": {
"dir": "...",
"session_id": "...",
"variables_json": "..."
}
}
}