Find all symbols that are referenced from a given symbol's definition
The input position must point to a symbol (e.g. function name, class name, variable name).
Returns all symbols referenced within that symbol’s implementation, categorized into:
Workspace symbols (with their definitions)
External symbols (built-in functions like ‘len’, ‘print’ or from external libraries)
Symbols that couldn’t be found
e.g. for a function definition in main.py:
@log_execution_time # Reference to decoratordef process_user(): # <-- Input position here user = User() # Reference to User class print("Done") # Reference to built-in function
This would return:
Workspace symbols: [
log_execution_time (with definition from decorators.py),
User (with definition from models.py)
]
External symbols: print (Python built-in)
POST
/
symbol
/
find-referenced-symbols
Find all symbols that are referenced from a given symbol's definition
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Request to get all symbols that are referenced from a symbol at the given position, either
focusing on function calls, or more permissively finding all references
The input position must point to a symbol (e.g. function name, class name, variable name).
The response will include all symbols that are referenced from that input symbol.
For example, if the position points to a function name, the response will include
all symbols referenced within that function's implementation.
Whether to use the more permissive rules to find referenced symbols. This will be not just
code that is executed but also things like type hints and chained indirection.
Defaults to false.
Example:
false
Response
Referenced symbols retrieved successfully
Response containing symbols referenced from the requested position
The symbols are categorized into:
workspace_symbols: References to symbols that were found and have definitions in the workspace
external_symbols: References to symbols from outside the workspace (built-in functions, external libraries)
not_found: References where the symbol definition could not be found
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Lsproxy Docs","colors":{"primary":"#0D9373","light":"#2DB0B3","dark":"#0D9373"},"favicon":"logo/agentic_logo.png","logo":{"light":"https://mintcdn.com/agenticlabs-2964319e/iD3j-Tz9pOfvLayG/logo/agentic_logo.png?fit=max\u0026auto=format\u0026n=iD3j-Tz9pOfvLayG\u0026q=85\u0026s=2aa1671e6e2263e42bd436462418914a","dark":"https://mintcdn.com/agenticlabs-2964319e/iD3j-Tz9pOfvLayG/logo/agentic_logo.png?fit=max\u0026auto=format\u0026n=iD3j-Tz9pOfvLayG\u0026q=85\u0026s=2aa1671e6e2263e42bd436462418914a","href":"https://lsproxy.dev"},"api":{"playground":{"display":"simple"}},"navbar":{"primary":{"type":"github","href":"https://github.com/agentic-labs/lsproxy"}},"footer":{"socials":{"x":"https://x.com/agentic_labs","linkedin":"https://www.linkedin.com/company/agentic-labs"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agenticlabs-2964319e","hasAudioNarration":false,"actualSubdomain":"agenticlabs-2964319e","customDomains":["docs.lsproxy.dev"],"gitSource":{"type":"github","owner":"robmck1995","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c5a241886f9eab77e9b5","collectionId":"5014e149-5de8-4cba-969b-8adc5554b67c","schemaVersion":"v2"},"entitlements":{},"buildId":"6a20c5a241886f9eab77e9b5:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"symbol","count":5},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"workspace","count":2},{"language":"default","tag":"system","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition","slug":"/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition","pageMetadata":{"title":"Find all symbols that are referenced from a given symbol's definition","description":"The input position must point to a symbol (e.g. function name, class name, variable name).\nReturns all symbols referenced within that symbol's implementation, categorized into:\n- Workspace symbols (with their definitions)\n- External symbols (built-in functions like 'len', 'print' or from external libraries)\n- Symbols that couldn't be found\n\ne.g. for a function definition in `main.py`:\n```python\n@log_execution_time # Reference to decorator\ndef process_user(): # \u003c-- Input position here\n user = User() # Reference to User class\n print(\"Done\") # Reference to built-in function\n```\nThis would return:\n- Workspace symbols: [\n log_execution_time (with definition from decorators.py),\n User (with definition from models.py)\n ]\n- External symbols: print (Python built-in)","deprecated":null,"version":null,"openapi":"openapi.json post /symbol/find-referenced-symbols","href":"/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"The input position must point to a symbol (e.g. function name, class name, variable name).\\nReturns all symbols referenced within that symbol’s implementation, categorized into:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Workspace symbols (with their definitions)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"External symbols (built-in functions like ‘len’, ‘print’ or from external libraries)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Symbols that couldn’t be found\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"e.g. for a function definition in \", _jsx(_components.code, {\n children: \"main.py\"\n }), \":\"]\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"4\",\n language: \"python\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"python\",\n children: _jsxs(_components.code, {\n language: \"python\",\n numberOfLines: \"4\",\n children: [_jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#8250DF\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"@log_execution_time\"\n }), _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \" # Reference to decorator\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \"def\"\n }), _jsx(_components.span, {\n style: {\n color: \"#8250DF\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \" process_user\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"(): \"\n }), _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# \u003c-- Input position here\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" user \"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"=\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" User() \"\n }), _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# Reference to User class\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \" print\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"(\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"Done\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \") \"\n }), _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# Reference to built-in function\"\n })]\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"This would return:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Workspace symbols: [\\nlog_execution_time (with definition from decorators.py),\\nUser (with definition from models.py)\\n]\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"External symbols: print (Python built-in)\"\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Find all symbols that are referenced from a given symbol's definition","description":"The input position must point to a symbol (e.g. function name, class name, variable name).\nReturns all symbols referenced within that symbol's implementation, categorized into:\n- Workspace symbols (with their definitions)\n- External symbols (built-in functions like 'len', 'print' or from external libraries)\n- Symbols that couldn't be found\n\ne.g. for a function definition in `main.py`:\n```python\n@log_execution_time # Reference to decorator\ndef process_user(): # \u003c-- Input position here\n user = User() # Reference to User class\n print(\"Done\") # Reference to built-in function\n```\nThis would return:\n- Workspace symbols: [\n log_execution_time (with definition from decorators.py),\n User (with definition from models.py)\n ]\n- External symbols: print (Python built-in)","deprecated":null,"version":null,"openapi":"openapi.json post /symbol/find-referenced-symbols","href":"/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["symbol"],"summary":"Find all symbols that are referenced from a given symbol's definition","description":"The input position must point to a symbol (e.g. function name, class name, variable name).\nReturns all symbols referenced within that symbol's implementation, categorized into:\n- Workspace symbols (with their definitions)\n- External symbols (built-in functions like 'len', 'print' or from external libraries)\n- Symbols that couldn't be found\n\ne.g. for a function definition in `main.py`:\n```python\n@log_execution_time # Reference to decorator\ndef process_user(): # \u003c-- Input position here\n user = User() # Reference to User class\n print(\"Done\") # Reference to built-in function\n```\nThis would return:\n- Workspace symbols: [\n log_execution_time (with definition from decorators.py),\n User (with definition from models.py)\n ]\n- External symbols: print (Python built-in)","operationId":"find_referenced_symbols","requestBody":"ed6d8ea3-7f76-44f7-8ba8-9da413831363","responses":{"200":"dc12248d-0dd3-4583-919a-b0311a9c0df4","400":"4b21348b-c407-4540-8a4d-b59c952bb515","500":"7801312c-3be1-43dd-9e2f-82b5d9c48b9a"},"method":"post","type":"path","servers":["89e32637-1c15-409a-9b63-72b5b6da9a60"],"security":["d5181418-c172-4f34-ac26-eb0ac96a7cb4"],"path":"/symbol/find-referenced-symbols","baseUrlOptions":["http://localhost:4444/v1"],"title":"Find all symbols that are referenced from a given symbol's definition","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Request to get all symbols that are referenced from a symbol at the given position, either\nfocusing on function calls, or more permissively finding all references\n\nThe input position must point to a symbol (e.g. function name, class name, variable name).\nThe response will include all symbols that are referenced from that input symbol.\nFor example, if the position points to a function name, the response will include\nall symbols referenced within that function's implementation.","required":["identifier_position"],"properties":{"identifier_position":{"type":"object","description":"The identifier position of the symbol to find references within","required":["path","position"],"properties":{"path":{"type":"string","description":"Path to the file, relative to the workspace root","example":"src/main.py","isRequired":true,"uniqueKey":"identifier_position.path","typeLabel":"string"},"position":{"type":"object","description":"Position within the file","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"identifier_position.position.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"identifier_position.position.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"identifier_position.position","typeLabel":"object"}},"isRequired":true,"uniqueKey":"identifier_position","typeLabel":"object"},"full_scan":{"type":"boolean","description":"Whether to use the more permissive rules to find referenced symbols. This will be not just\ncode that is executed but also things like type hints and chained indirection.\nDefaults to false.","example":false,"uniqueKey":"full_scan","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"identifier_position":{"path":"src/main.py","position":{"character":5,"line":10}},"full_scan":false}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"dc12248d-0dd3-4583-919a-b0311a9c0df4":{"description":"Referenced symbols retrieved successfully","content":{"application/json":{"schema":{"type":"object","description":"Response containing symbols referenced from the requested position\n\nThe symbols are categorized into:\n- workspace_symbols: References to symbols that were found and have definitions in the workspace\n- external_symbols: References to symbols from outside the workspace (built-in functions, external libraries)\n- not_found: References where the symbol definition could not be found","required":["workspace_symbols","external_symbols","not_found"],"properties":{"external_symbols":{"type":"array","items":{"type":"object","required":["name","file_range"],"properties":{"file_range":{"type":"object","description":"A range within a specific file, defined by start and end positions","required":["path","range"],"properties":{"path":{"type":"string","description":"The path to the file.","example":"src/main.py","isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.path","typeLabel":"string"},"range":{"type":"object","required":["start","end"],"properties":{"end":{"type":"object","description":"The end position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range.end.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range.end.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range.end","typeLabel":"object"},"start":{"type":"object","description":"The start position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range.start.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range.start.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range.start","typeLabel":"object"}},"description":"The range within the file","isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range.range","typeLabel":"object"}},"isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].file_range","typeLabel":"object"},"name":{"type":"string","isRequired":true,"uniqueKey":"external_symbols.items.[INDEX].name","typeLabel":"string"},"kind":{"oneOf":[{"type":"string","uniqueKey":"external_symbols.items.[INDEX].kind.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"external_symbols.items.[INDEX].kind.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_symbols.items.[INDEX].kind","typeLabel":"string | null"}},"uniqueKey":"external_symbols.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"external_symbols","typeLabel":"object[]"},"not_found":{"type":"array","items":{"type":"object","required":["name","file_range"],"properties":{"file_range":{"type":"object","description":"A range within a specific file, defined by start and end positions","required":["path","range"],"properties":{"path":{"type":"string","description":"The path to the file.","example":"src/main.py","isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.path","typeLabel":"string"},"range":{"type":"object","required":["start","end"],"properties":{"end":{"type":"object","description":"The end position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range.end.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range.end.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range.end","typeLabel":"object"},"start":{"type":"object","description":"The start position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range.start.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range.start.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range.start","typeLabel":"object"}},"description":"The range within the file","isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range.range","typeLabel":"object"}},"isRequired":true,"uniqueKey":"not_found.items.[INDEX].file_range","typeLabel":"object"},"name":{"type":"string","isRequired":true,"uniqueKey":"not_found.items.[INDEX].name","typeLabel":"string"},"kind":{"oneOf":[{"type":"string","uniqueKey":"not_found.items.[INDEX].kind.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"not_found.items.[INDEX].kind.oneOf.1","typeLabel":"null"}],"uniqueKey":"not_found.items.[INDEX].kind","typeLabel":"string | null"}},"uniqueKey":"not_found.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"not_found","typeLabel":"object[]"},"workspace_symbols":{"type":"array","items":{"type":"object","description":"A reference to a symbol along with its definition(s) found in the workspace\n\ne.g. for a reference to `User` in `main.py`:\n```python\nuser = User(\"John\", 30)\n_______^\n```\nThis would contain:\n- The reference location and name (\"User\" at line 0)\n- The symbol definition(s) (e.g. \"class User\" in models.py)","required":["reference","definitions"],"properties":{"definitions":{"type":"array","items":{"type":"object","required":["name","kind","identifier_position","file_range"],"properties":{"file_range":{"type":"object","description":"The full range of the symbol.","required":["path","range"],"properties":{"path":{"type":"string","description":"The path to the file.","example":"src/main.py","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.path","typeLabel":"string"},"range":{"type":"object","required":["start","end"],"properties":{"end":{"type":"object","description":"The end position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range.end.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range.end.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range.end","typeLabel":"object"},"start":{"type":"object","description":"The start position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range.start.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range.start.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range.start","typeLabel":"object"}},"description":"The range within the file","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range.range","typeLabel":"object"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].file_range","typeLabel":"object"},"identifier_position":{"type":"object","description":"The start position of the symbol's identifier.","required":["path","position"],"properties":{"path":{"type":"string","description":"Path to the file, relative to the workspace root","example":"src/main.py","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].identifier_position.path","typeLabel":"string"},"position":{"type":"object","description":"Position within the file","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].identifier_position.position.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].identifier_position.position.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].identifier_position.position","typeLabel":"object"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].identifier_position","typeLabel":"object"},"kind":{"type":"string","description":"The kind of the symbol (e.g., function, class).","example":"class","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].kind","typeLabel":"string"},"name":{"type":"string","description":"The name of the symbol.","example":"User","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"workspace_symbols.items.[INDEX].definitions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].definitions","typeLabel":"object[]"},"reference":{"type":"object","required":["name","file_range"],"properties":{"file_range":{"type":"object","description":"A range within a specific file, defined by start and end positions","required":["path","range"],"properties":{"path":{"type":"string","description":"The path to the file.","example":"src/main.py","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.path","typeLabel":"string"},"range":{"type":"object","required":["start","end"],"properties":{"end":{"type":"object","description":"The end position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range.end.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range.end.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range.end","typeLabel":"object"},"start":{"type":"object","description":"The start position of the range.","required":["line","character"],"properties":{"character":{"type":"integer","format":"int32","description":"0-indexed character index within the line.","example":5,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range.start.character","typeLabel":"integer\u003cint32>"},"line":{"type":"integer","format":"int32","description":"0-indexed line number.","example":10,"minimum":0,"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range.start.line","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range.start","typeLabel":"object"}},"description":"The range within the file","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range.range","typeLabel":"object"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.file_range","typeLabel":"object"},"name":{"type":"string","isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference.name","typeLabel":"string"},"kind":{"oneOf":[{"type":"string","uniqueKey":"workspace_symbols.items.[INDEX].reference.kind.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"workspace_symbols.items.[INDEX].reference.kind.oneOf.1","typeLabel":"null"}],"uniqueKey":"workspace_symbols.items.[INDEX].reference.kind","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"workspace_symbols.items.[INDEX].reference","typeLabel":"object"}},"uniqueKey":"workspace_symbols.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"workspace_symbols","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"external_symbols":[{"file_range":{"path":"src/main.py","range":{"end":{"character":5,"line":10},"start":{"character":5,"line":10}}},"name":"\u003cstring>","kind":"\u003cstring>"}],"not_found":[{"file_range":{"path":"src/main.py","range":{"end":{"character":5,"line":10},"start":{"character":5,"line":10}}},"name":"\u003cstring>","kind":"\u003cstring>"}],"workspace_symbols":[{"definitions":[{"file_range":{"path":"src/main.py","range":{"end":{"character":5,"line":10},"start":{"character":5,"line":10}}},"identifier_position":{"path":"src/main.py","position":{"character":5,"line":10}},"kind":"class","name":"User"}],"reference":{"file_range":{"path":"src/main.py","range":{"end":{"character":5,"line":10},"start":{"character":5,"line":10}}},"name":"\u003cstring>","kind":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"4b21348b-c407-4540-8a4d-b59c952bb515":{"description":"Bad request","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"7801312c-3be1-43dd-9e2f-82b5d9c48b9a":{"description":"Internal server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"d5181418-c172-4f34-ac26-eb0ac96a7cb4":{"bearer_auth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"89e32637-1c15-409a-9b63-72b5b6da9a60":{"url":"http://localhost:4444/v1","description":"API server v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer_auth","name":"Authorization"}],"title":"bearer_auth"}]},"originalFileLocation":"openapi.json"},"subdomain":"agenticlabs-2964319e","siteName":"Lsproxy Docs","title":"Find all symbols that are referenced from a given symbol's definition - Lsproxy Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:49:51.399Z","originalFileLocation":"api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The input position must point to a symbol (e.g. function name, class name, variable name). Returns all symbols referenced within that symbol\u0026#x27;s implementation, categorized into: - Workspace symbols (with their definitions) - External symbols (built-in functions like \u0026#x27;len\u0026#x27;, \u0026#x27;print\u0026#x27; or from external libraries) - Symbols that couldn\u0026#x27;t be found e.g. for a function definition in main.py: python @log_execution_time # Reference to decorator def process_user(): # \u0026lt;-- Input position here user = User() # Reference to User class print(\u0026quot;Done\u0026quot;) # Reference to built-in function This would return: - Workspace symbols: [ log_execution_time (with definition from decorators.py), User (with definition from models.py) ] - External symbols: print (Python built-in)\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lsproxy Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Find all symbols that are referenced from a given symbol\u0026#x27;s definition - Lsproxy Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The input position must point to a symbol (e.g. function name, class name, variable name). Returns all symbols referenced within that symbol\u0026#x27;s implementation, categorized into: - Workspace symbols (with their definitions) - External symbols (built-in functions like \u0026#x27;len\u0026#x27;, \u0026#x27;print\u0026#x27; or from external libraries) - Symbols that couldn\u0026#x27;t be found e.g. for a function definition in main.py: python @log_execution_time # Reference to decorator def process_user(): # \u0026lt;-- Input position here user = User() # Reference to User class print(\u0026quot;Done\u0026quot;) # Reference to built-in function This would return: - Workspace symbols: [ log_execution_time (with definition from decorators.py), User (with definition from models.py) ] - External symbols: print (Python built-in)\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lsproxy Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agenticlabs-2964319e.mintlify.app/_mintlify/api/og/v2?division=symbol\u0026amp;title=Find+all+symbols+that+are+referenced+from+a+given+symbol%27s+definition\u0026amp;description=The+input+position+must+point+to+a+symbol+%28e.g.+function+name%2C+class+name%2C+variable+name%29.%0AReturns+all+symbols+referenced+within+that+symbol%27s+implementation%2C+c\u0026amp;theme=697867495ad406c2b538c5e2\u0026amp;signature=ba596d9737312ae5a3ccf73eee23bae872793bb64faf6e36c6af6ea272528253\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Find all symbols that are referenced from a given symbol\u0026#x27;s definition - Lsproxy Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The input position must point to a symbol (e.g. function name, class name, variable name). Returns all symbols referenced within that symbol\u0026#x27;s implementation, categorized into: - Workspace symbols (with their definitions) - External symbols (built-in functions like \u0026#x27;len\u0026#x27;, \u0026#x27;print\u0026#x27; or from external libraries) - Symbols that couldn\u0026#x27;t be found e.g. for a function definition in main.py: python @log_execution_time # Reference to decorator def process_user(): # \u0026lt;-- Input position here user = User() # Reference to User class print(\u0026quot;Done\u0026quot;) # Reference to built-in function This would return: - Workspace symbols: [ log_execution_time (with definition from decorators.py), User (with definition from models.py) ] - External symbols: print (Python built-in)\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agenticlabs-2964319e.mintlify.app/_mintlify/api/og/v2?division=symbol\u0026amp;title=Find+all+symbols+that+are+referenced+from+a+given+symbol%27s+definition\u0026amp;description=The+input+position+must+point+to+a+symbol+%28e.g.+function+name%2C+class+name%2C+variable+name%29.%0AReturns+all+symbols+referenced+within+that+symbol%27s+implementation%2C+c\u0026amp;theme=697867495ad406c2b538c5e2\u0026amp;signature=ba596d9737312ae5a3ccf73eee23bae872793bb64faf6e36c6af6ea272528253\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/agenticlabs-2964319e/KOUEMwyUBLnsf-_2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lsproxy Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lsproxy.dev/#organization\",\"name\":\"Lsproxy Docs\",\"url\":\"https://docs.lsproxy.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agenticlabs-2964319e/iD3j-Tz9pOfvLayG/logo/agentic_logo.png?fit=max\u0026auto=format\u0026n=iD3j-Tz9pOfvLayG\u0026q=85\u0026s=2aa1671e6e2263e42bd436462418914a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lsproxy.dev#website\",\"name\":\"Lsproxy Docs\",\"url\":\"https://docs.lsproxy.dev\",\"publisher\":{\"@id\":\"https://docs.lsproxy.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition#webpage\",\"url\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition\",\"name\":\"Find all symbols that are referenced from a given symbol's definition\",\"description\":\"The input position must point to a symbol (e.g. function name, class name, variable name). Returns all symbols referenced within that symbol's implementation, categorized into: - Workspace symbols (with their definitions) - External symbols (built-in functions like 'len', 'print' or from external libraries) - Symbols that couldn't be found e.g. for a function definition in main.py: python @log_execution_time # Reference to decorator def process_user(): # \\u003c-- Input position here user = User() # Reference to User class print(\\\"Done\\\") # Reference to built-in function This would return: - Workspace symbols: [ log_execution_time (with definition from decorators.py), User (with definition from models.py) ] - External symbols: print (Python built-in)\",\"dateModified\":\"2026-01-07T03:49:51.399Z\",\"isPartOf\":{\"@id\":\"https://docs.lsproxy.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"symbol\",\"item\":\"https://docs.lsproxy.dev/api-reference/symbol/get-symbols-in-a-specific-file-uses-ast-grep\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Find all symbols that are referenced from a given symbol's definition\",\"item\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition#apireference\",\"headline\":\"Find all symbols that are referenced from a given symbol's definition\",\"name\":\"Find all symbols that are referenced from a given symbol's definition\",\"description\":\"The input position must point to a symbol (e.g. function name, class name, variable name). Returns all symbols referenced within that symbol's implementation, categorized into: - Workspace symbols (with their definitions) - External symbols (built-in functions like 'len', 'print' or from external libraries) - Symbols that couldn't be found e.g. for a function definition in main.py: python @log_execution_time # Reference to decorator def process_user(): # \\u003c-- Input position here user = User() # Reference to User class print(\\\"Done\\\") # Reference to built-in function This would return: - Workspace symbols: [ log_execution_time (with definition from decorators.py), User (with definition from models.py) ] - External symbols: print (Python built-in)\",\"url\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lsproxy.dev/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition#webpage\"},\"dateModified\":\"2026-01-07T03:49:51.399Z\",\"publisher\":{\"@id\":\"https://docs.lsproxy.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lsproxy.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lsproxy Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Lsproxy Docs","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"symbol","pages":[{"title":"Get symbols in a specific file (uses ast-grep)","deprecated":null,"version":null,"openapi":"openapi.json get /symbol/definitions-in-file","href":"/api-reference/symbol/get-symbols-in-a-specific-file-uses-ast-grep"},{"title":"Get the definition of a symbol at a specific position in a file","deprecated":null,"version":null,"openapi":"openapi.json post /symbol/find-definition","href":"/api-reference/symbol/get-the-definition-of-a-symbol-at-a-specific-position-in-a-file"},{"title":"Finds occurrences of an identifier by name in a file","description":"Given a file path and identifier name, returns:\n- Without position: All matching identifiers in the file\n- With position: The exact identifier with that name at that position, or 3 closest identifiers with that name\n\nExample finding all occurrences of \"user_name\":\n```\nlet user_name = \"John\"; // First occurrence\nprintln!(\"{}\", user_name); // Second occurrence\n```\n\nWhen a position is provided, it searches for an exact match at that location.\nIf no exact match exists, returns the 3 identifiers closest to the position\nbased on line and character distance, prioritizing lines.","deprecated":null,"version":null,"openapi":"openapi.json post /symbol/find-identifier","href":"/api-reference/symbol/finds-occurrences-of-an-identifier-by-name-in-a-file"},{"title":"Find all symbols that are referenced from a given symbol's definition","deprecated":null,"version":null,"openapi":"openapi.json post /symbol/find-referenced-symbols","href":"/api-reference/symbol/find-all-symbols-that-are-referenced-from-a-given-symbols-definition"},{"title":"Find all references to a symbol","description":"The input position should point to the identifier of the symbol you want to get the references for.\n\nReturns a list of locations where the symbol at the given position is referenced.\n\nThe returned positions point to the start of the reference identifier.\n\ne.g. for `User` on line 0 of `src/main.py`:\n```\n 0: class User:\n input____^^^^\n 1: def __init__(self, name, age):\n 2: self.name = name\n 3: self.age = age\n 4:\n 5: user = User(\"John\", 30)\n output____^\n```","deprecated":null,"version":null,"openapi":"openapi.json post /symbol/find-references","href":"/api-reference/symbol/find-all-references-to-a-symbol"}]},{"group":"system","pages":[{"title":"Get health status of the LSP proxy service","deprecated":null,"version":null,"openapi":"openapi.json get /system/health","href":"/api-reference/system/get-health-status-of-the-lsp-proxy-service"}]},{"group":"workspace","pages":[{"title":"Get a list of all files in the workspace","deprecated":null,"version":null,"openapi":"openapi.json get /workspace/list-files","href":"/api-reference/workspace/get-a-list-of-all-files-in-the-workspace"},{"title":"Read source code from a file in the workspace","deprecated":null,"version":null,"openapi":"openapi.json post /workspace/read-source-code","href":"/api-reference/workspace/read-source-code-from-a-file-in-the-workspace"}]}]}]},"title":"Find all symbols that are referenced from a given symbol's definition - Lsproxy Docs","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}