Get artifact relationships
Traverses the code graph around one known artifact: callers, callees, inheritance, and references. Choose profile by the question: calls_only (default) for call edges of functions and methods, inheritance_only for base types and implementations, references_only for where-used checks on types, fields, events, and other non-call usage, all_relevant for calls plus inheritance. Use it to find upstream entry points and downstream consumers before reading more files.
Authorizations
API Key authentication using Bearer token. Example: "Authorization: Bearer {apiKey}"
Body
Full artifact identifier from a previous search, fetch, or relationship result.
Optional success projection. Omit to return both obj and rendered; use json for obj only; use agentic for rendered text only. Repairable errors always return both obj.error and rendered.
json, agentic Relationship profile. Default is calls_only.
calls_only, inheritance_only, all_relevant, references_only Maximum relationships to return per relationship type. Default is 50.
Optional repository or workspace name/id used to disambiguate the identifier.
Response
Success envelope. obj describes the traversal: sourceIdentifier, profile, found, relationships[] grouped by relationType with items[] (identifier, filePath, startLine, shortSummary) and truncation flags, plus availableRelationshipCounts; rendered is the JSON-serialized form of obj. Repairable failures (missing or invalid arguments, ambiguous or unknown data sources) also return HTTP 200 with obj.error = { code, message, retry, try } and a rendered <tool_error> block; repair the arguments and retry.