get_streaming_data
Retrieve real-time oscilloscope data for enabled channels to monitor and analyze live signals. Specify maximum sample count to control data volume for signal processing 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() indicating it is registered as an MCP tool. Currently returns a stub 'not_implemented' response.@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:17-17 (registration)The call to register_acquisition_tools(mcp) in the main server file, which registers the get_streaming_data tool among others.register_acquisition_tools(mcp)
- src/picoscope_mcp/tools/acquisition.py:8-9 (registration)The registration function that defines and registers the get_streaming_data tool using @mcp.tool() decorator inside it.def register_acquisition_tools(mcp: Any) -> None: """Register data acquisition tools with the MCP server."""