get_streaming_data
Retrieve real-time streaming data from PicoScope oscilloscopes to capture and analyze live signals for measurement and monitoring applications.
Instructions
Get latest streaming data.
Args: max_samples: Maximum number of samples to retrieve.
Returns: Dictionary containing latest streaming data for enabled channels.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_samples | No |
Implementation Reference
- The handler function for the 'get_streaming_data' tool. It is decorated with @mcp.tool(), which registers it with the MCP server. Currently implemented as a stub returning 'not_implemented' status.@mcp.tool() def get_streaming_data(max_samples: int = 1000) -> dict[str, Any]: """Get latest streaming data. Args: max_samples: Maximum number of samples to retrieve. Returns: Dictionary containing latest streaming data for enabled channels. """ # TODO: Implement streaming data retrieval return {"status": "not_implemented", "max_samples": max_samples}
- src/picoscope_mcp/server.py:16-19 (registration)Registration of tool groups in the main server.py file. The call to register_acquisition_tools(mcp) triggers the definition and registration of the get_streaming_data tool.register_configuration_tools(mcp) register_acquisition_tools(mcp) register_analysis_tools(mcp) register_advanced_tools(mcp)