Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

SQL → Discover RPC

AI-generated

Summary

Discovers the RPC methods available through Plug by sending an rpc.discover JSON-RPC command over REST or Socket. In Guided mode, optionally provide JSON parameters and command options; in Advanced mode, supply the full command object.

Inputs

  • Channel — Choose REST or Socket; defaults to REST.
  • Input Mode — Choose Guided or Advanced; defaults to Guided.
  • Discover Params JSON — In Guided mode, an optional JSON object forwarded as the rpc.discover params.
  • Raw JSON-RPC Command — Required in Advanced mode. Provide a single JSON-RPC command object; the node injects the resolved client token where supported.
  • Agent ID — Optional target agent override; falls back to the credential's Default Agent ID.
  • Client Token — Optional client token override; falls back to the credential's Default Client Token.
  • Include Plug Metadata — Defaults to true; controls whether output includes a __plug object with channel, agent, request, and socket metadata.
  • Additional Options — In Guided mode, configure timeout (default 15000 ms), API version (default 2.8), optional RPC metadata JSON, server timings, and maximum parallel input items (default 0, sequential).
  • Socket Options — For Socket channel, configure stream buffer limits, pull window size, relay fast path, and server timings.
  • Response Mode — Choose the output shape; defaults to Aggregated JSON. Other modes are Aggregated Single Item, Chunk Items, or Raw JSON-RPC.

Output shape

One or more n8n items containing the normalized RPC discovery response.

The selected response mode controls aggregation; Raw JSON-RPC returns the normalized RPC envelope. When enabled, each output can include __plug metadata.

Examples

Example 1: Discover available RPC methods

Select SQL → Discover RPC, use Guided mode, optionally set Discover Params JSON (for example {"include_methods":true}), and choose REST or Socket.

Example 2: Send a custom discovery command

Select Advanced mode and provide a complete JSON-RPC command object for discovery.

Links

Discussion