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

Function define_tool

python/copilot/tools.py:73–81  ·  view source on GitHub ↗
(
    name: str | None = None,
    *,
    description: str | None = None,
    overrides_built_in_tool: bool = False,
    skip_permission: bool = False,
    defer: Literal["auto", "never"] | None = None,
)

Source from the content-addressed store, hash-verified

71
72@overload
73def define_tool(
74 name: str | None = None,
75 *,
76 description: str | None = None,
77 overrides_built_in_tool: bool = False,
78 skip_permission: bool = False,
79 defer: Literal["auto", "never"] | None = None,
80) -> Callable[[Callable[..., Any]], Tool]:
81 pass
82
83
84@overload

Calls 3

decoratorFunction · 0.85
_is_pydantic_modelFunction · 0.85
ToolClass · 0.70

Used in the wild real call sites across dependent graphs

searching dependent graphs…