tcp_recv
Receive bytes from a TCP socket. Supports blocking and non-blocking modes with configurable timeout. Returns data as base64 and plain text if valid UTF-8.
Instructions
Receive bytes from a TCP socket. timeout_seconds=0 (default) is non-blocking; >0 waits for at least one byte or timeout. Returns base64 (and text if valid UTF-8). bytes_received=0 with empty data indicates timeout or EOF (peer closed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_bytes | No | ||
| socket_id | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||