mavis_session_info
Get detailed session info including status, workspace, and model. Provide a session ID to retrieve current session data.
Instructions
Get detailed info about a specific session (status, workspace, model, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID (e.g. mvs_xxx) |
Implementation Reference
- src/index.js:119-126 (registration)Tool definition and registration for 'mavis_session_info' in the tools array. It specifies the name, description, inputSchema (zod schema requiring a sessionId string), and buildArgs function that constructs CLI args ['session', 'info', sessionId] for the Mavis CLI.
{ name: 'mavis_session_info', description: 'Get detailed info about a specific session (status, workspace, model, etc.)', inputSchema: z.object({ sessionId: z.string().describe('Session ID (e.g. mvs_xxx)') }), buildArgs: ({ sessionId }) => ['session', 'info', sessionId] }, - src/index.js:122-124 (schema)Input schema for mavis_session_info defined using Zod. Requires a single parameter 'sessionId' (string) with description 'Session ID (e.g. mvs_xxx)'.
inputSchema: z.object({ sessionId: z.string().describe('Session ID (e.g. mvs_xxx)') }), - src/index.js:125-126 (handler)The buildArgs handler function that translates parsed arguments into CLI command ['session', 'info', sessionId] to be executed via execMavisJSON (the default exec path since no execFn is specified).
buildArgs: ({ sessionId }) => ['session', 'info', sessionId] }, - src/index.js:55-64 (helper)The execMavisJSON helper function that the tool uses to call the Mavis CLI and parse JSON output. Since mavis_session_info does not specify execFn, it defaults to this JSON-based execution path.
function execMavisJSON(args) { return execMavis(args).then(raw => { try { return JSON.parse(raw); } catch { const jsonStart = raw.indexOf('{'); return JSON.parse(jsonStart >= 0 ? raw.slice(jsonStart) : raw); } }); } - scripts/test-schema.js:18-18 (registration)Test data sample for mavis_session_info used in schema validation tests: { sessionId: 'mvs_test123' }.
mavis_session_info: { sessionId: 'mvs_test123' },