---
name: ai-sns/A2A JSON-RPC Call
source: https://app.decimal.ai/s/ai-sns-a2a-json-rpc-call@1/SKILL.md
source_sha256: 76d53df79355
---

This skill invokes A2A JSON-RPC methods on a remote agent endpoint.

**Input parameters** (via stdin JSON):
- `url` (string, required): The peer's A2A JSON-RPC endpoint URL.
- `method` (string, required): `"tasks/send"` or `"tasks/get"`.
- `task_id` (string, optional): Required for `tasks/get`. The task ID to query.
- `message_text` (string, optional): For `tasks/send` — a text message to include.
- `message_data` (object, optional): For `tasks/send` — a data payload to include.
- `skill_id` (string, optional): For `tasks/send` — the target skill ID on the peer agent.
- `metadata` (object, optional): Extra metadata to attach to the request.

**Output** (stdout JSON):
- `ok` (bool): Whether the call succeeded.
- `result` (object): The JSON-RPC result on success.
- `error` (string): Error message on failure.