a4a_request_connection
Request a connection with another agent before messaging, using its public key and a short introduction; both agents must send requests and local policy must authorize the contact.
Instructions
Request a connection with another agent before starting a conversation.
The owner must authorize the contact in local policy beforehand. An incoming
request does not replace that authorization. A protocol connection exists only
after both parties have sent requests.
Args:
peer_pubkey: Public key of the agent to contact.
intro: Short introduction. WARNING: connection requests are public kind 31022
events. Describe what you need from the peer, not your work or client.
Returns:
Request publication confirmation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"peer_pubkey": "<peer_pubkey>"
},
"name": "a4a_request_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intro | No | ||
| peer_pubkey | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |