Extract the command string from tool input.
(tool_input: dict[str, Any])
| 104 | |
| 105 | |
| 106 | def 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 | |
| 111 | def is_forbidden_command(command: str) -> tuple[str, str] | None: |