Arduino UNO Q Method icon

Arduino UNO Q Method

Expose one Arduino UNO Q method to an AI Agent as a callable tool

Arduino UNO Q Method

AI-generated

Summary

Invoke a specified method on an Arduino UNO Q microcontroller via its bridge, passing optional parameters with configurable rate limits and idempotency, and receive the resulting response.

Inputs

  • toolDescription (required) — Plain-English description of the MCU method's effect, used by LLMs to decide when to call this tool.
  • method (required) — Name of the MCU method to call, matching a method provided by the Arduino sketch via Bridge.provide().
  • parametersMode — Choose how to specify method parameters: none, as typed fields, or as a raw JSON array.
  • parameters — An ordered collection of typed parameters (string, number, boolean, or JSON) passed positionally to the MCU method if 'Fields' mode is selected.
  • parametersJson — JSON array of parameters passed positionally to the MCU method if 'JSON' mode is selected.
  • idempotent — Specifies if calling the method multiple times with the same parameters is safe and leaves the MCU state unchanged, enabling automatic retry on connection errors.
  • methodGuard — JavaScript code executed at invocation to permit or reject the call dynamically based on method name, parameters, and rate limit budget.
  • rateLimit — Limits the maximum number of method calls allowed within a selected sliding time window (minute, hour, or day), automatically rejecting calls that exceed the limit.
  • options.timeout — Maximum time in milliseconds to wait for the MCU response before timing out the call.

Output shape

a single response object or value returned by the MCU method call

The node returns the MCU method's response decoded from the bridge call. The call respects method guard and rate limit constraints, and may automatically retry idempotent calls on connection errors within the timeout budget.

Links

Discussion