MCPcopy
hub / github.com/smittix/intercept / start_mode

Method start_mode

utils/agent_client.py:204–215  ·  view source on GitHub ↗

Start a mode on the agent. Args: mode: Mode name (e.g., 'sensor', 'adsb', 'wifi') params: Mode-specific parameters Returns: Start result with 'status' field

(self, mode: str, params: dict | None = None)

Source from the content-addressed store, hash-verified

202 # =========================================================================
203
204 def start_mode(self, mode: str, params: dict | None = None) -> dict:
205 """
206 Start a mode on the agent.
207
208 Args:
209 mode: Mode name (e.g., 'sensor', 'adsb', 'wifi')
210 params: Mode-specific parameters
211
212 Returns:
213 Start result with 'status' field
214 """
215 return self._post(f'/{mode}/start', params or {})
216
217 def stop_mode(self, mode: str, timeout: float = 8.0) -> dict:
218 """

Callers 1

test_start_modeMethod · 0.95

Calls 1

_postMethod · 0.95

Tested by 1

test_start_modeMethod · 0.76