Skip to main content
Glama
block
by block

get_occurrences

Find all references or definitions of a symbol in Xcode projects using its USR identifier to support code navigation and refactoring tasks.

Instructions

Get all occurrences of a symbol by its USR.

Args: usr: The USR (Unified Symbol Resolution) of the symbol roles: The roles to search for (must be "reference" or "definition")

Returns: Dict containing all occurrences of the symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usrYes
rolesYes

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/block/xcode-index-mcp'

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