Skip to main content
Glama

get_component_usage

Locate all files that import a specific library or component in your codebase to understand dependencies and usage patterns.

Instructions

Find WHERE a library or component is used in the codebase. This is 'Find Usages' - returns all files that import a given package/module. Example: get_component_usage('@mycompany/utils') → shows all 34 files using it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesImport source to find usages for (e.g., 'primeng/table', '@mycompany/ui/button', 'lodash')

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/PatrickSys/codebase-context'

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