Skip to main content
Glama
focus.js381 B
/** * Focus an element * * @param {Object} params * @param {string} params.selector - CSS selector for element to focus */ (function(params) { const { selector } = params; const element = document.querySelector(selector); if (!element) { throw new Error(`Element not found: ${selector}`); } element.focus(); return `Focused element: ${selector}`; })

Latest Blog Posts

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/hypothesi/mcp-server-tauri'

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