Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

SQL → Validate Context

AI-generated

Summary

Validates the selected Plug agent and client token by sending a validation command over the chosen REST or Socket channel. Use the optional agent ID and client token fields to override the credential defaults for this request.

Inputs

  • Channel — Choose REST (default) or Socket.
  • Agent ID — Optional target agent ID; falls back to the credential’s Default Agent ID when empty.
  • Client Token — Optional client token override; falls back to the credential’s Default Client Token when empty.
  • Include Plug Metadata — Defaults to true. When enabled, includes a __plug object with channel, agent, request, and socket metadata in the output.
  • Timeout (ms) — Optional validation request timeout; defaults to 15000 ms.
  • Socket Options — When using Socket, configure stream buffering limits, pull window size, relay fast path, and server timing requests. These settings are available in the UI, though validation does not itself execute SQL.

Output shape

A single n8n item containing the validation response, optionally with a __plug metadata object.

The provided source pack shows shared command-building and execution helpers but omits their function bodies, so the precise response fields and validation result envelope are not visible.

Links

Discussion