MCPcopy Create free account
hub / github.com/github/copilot-sdk / analyze_code

Method analyze_code

python/e2e/test_tool_results_e2e.py:75–83  ·  view source on GitHub ↗
(params: AnalyzeParams, invocation: ToolInvocation)

Source from the content-addressed store, hash-verified

73
74 @define_tool("analyze_code", description="Analyzes code for issues")
75 def analyze_code(params: AnalyzeParams, invocation: ToolInvocation) -> ToolResult:
76 return ToolResult(
77 text_result_for_llm=f"Analysis of {params.file}: no issues found",
78 result_type="success",
79 tool_telemetry={
80 "metrics": {"analysisTimeMs": 150},
81 "properties": {"analyzer": "eslint"},
82 },
83 )
84
85 session = await ctx.client.create_session(
86 on_permission_request=PermissionHandler.approve_all, tools=[analyze_code]

Callers

nothing calls this directly

Calls 1

ToolResultClass · 0.90

Tested by

no test coverage detected