Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
selection.ts359 B
import * as vscode from "vscode" export function getSelectedText() { const textEditor = vscode.window.activeTextEditor if (!textEditor) return undefined const selection = textEditor.selection if (!selection) return undefined // get selected text const selectedText = textEditor.document.getText(selection) return selectedText }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server