nt_poll_subscription
Retrieve buffered samples from a NetworkTables subscription and optionally clear the buffer to prevent duplicate reads.
Instructions
Return buffered samples for a persistent subscription.
Response:
{"connected": bool, "samples": {topic: [{"time", "value"}, ...]}}.
clear=True empties the buffer after reading.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subscription_id": "<subscription_id>"
},
"name": "nt_poll_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| subscription_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||