MCPcopy Create free account
hub / github.com/FastLED/FastLED / extract_command

Function extract_command

ci/hooks/check_forbidden_commands.py:106–108  ·  view source on GitHub ↗

Extract the command string from tool input.

(tool_input: dict[str, Any])

Source from the content-addressed store, hash-verified

104
105
106def extract_command(tool_input: dict[str, Any]) -> str | None:
107 """Extract the command string from tool input."""
108 return tool_input.get("command")
109
110
111def is_forbidden_command(command: str) -> tuple[str, str] | None:

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected