MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / do

Method do

tests/lib/tools/toolsets/_computer_fakes.py:44–50  ·  view source on GitHub ↗
(self, name: str, context: BetaToolsetCallContext, input: Any)

Source from the content-addressed store, hash-verified

42 self.results: dict[str, Any] = {} # a member name -> the result to hand back instead of the usual one
43
44 def do(self, name: str, context: BetaToolsetCallContext, input: Any) -> Any:
45 self.calls.append(name)
46 self.inputs.append(input)
47 self.contexts.append(context)
48 if name in self.fail:
49 raise self.fail[name]
50 return self.results.get(name)
51
52 # member bodies -------------------------------------------------------------------------
53

Callers 5

screenshotMethod · 0.95
zoomMethod · 0.95
cursor_positionMethod · 0.95
mouse_moveMethod · 0.95
actionMethod · 0.95

Calls 2

appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected