vscode-mcp-server

get_context_tabs

Retrieve AI-relevant tab information from VS Code, including file paths and optional content, to enhance context-aware development workflows.

Instructions

Retrieves information about tabs that have been specifically marked for inclusion in AI context using the UI toggle in VS Code.

Input Schema

NameRequiredDescriptionDefault
includeContentNoWhether to include the file content of each tab (may be large)
selectionsNoOptional array of file paths with specific line ranges to include
targetProjectPathYesPath to the project folder we are working in

Input Schema (JSON Schema)

{ "properties": { "includeContent": { "default": true, "description": "Whether to include the file content of each tab (may be large)", "type": "boolean" }, "selections": { "description": "Optional array of file paths with specific line ranges to include", "items": { "properties": { "filePath": { "description": "Path to the file", "type": "string" }, "ranges": { "description": "Array of line ranges to include from the file", "items": { "properties": { "endLine": { "description": "Ending line number (1-based, inclusive)", "type": "integer" }, "startLine": { "description": "Starting line number (1-based)", "type": "integer" } }, "required": [ "startLine", "endLine" ], "type": "object" }, "type": "array" } }, "required": [ "filePath" ], "type": "object" }, "type": "array" }, "targetProjectPath": { "description": "Path to the project folder we are working in", "type": "string" } }, "required": [ "targetProjectPath" ], "type": "object" }

You must be authenticated.

Other Tools from vscode-mcp-server

Related Tools

ID: ohvq7n4onu