# @integraledger/lcp/a2a

> The LCP extension for A2A: the ATR hash and the link to the seller's copy delivered in a Task's `metadata`, keyed by the extension's URI. A2A signs nothing per transaction, so this is a carrier and exports no pairing. Pure; no I/O.

Source: https://lcp.integraledger.com/reference/api/a2a

Updated 2026-11-18. Documents @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. Every page of this site is listed in https://lcp.integraledger.com/llms.txt.

The LCP extension for A2A: the ATR hash and the link to the seller's copy delivered in a Task's `metadata`, keyed by
the extension's URI. A2A signs nothing per transaction, so this is a carrier and exports no pairing. Pure; no I/O.

## Interfaces

### A2aAgentExtension

#### Properties

| Property | Type |
| ------ | ------ |
| <a id="property-description"></a> `description` | `string` |
| <a id="property-required"></a> `required` | `boolean` |
| <a id="property-uri"></a> `uri` | `string` |

***

### A2aTask

#### Indexable

> \[`k`: `string`\]: [`Json`](https://lcp.integraledger.com/reference/api.md#json) \| `undefined`

#### Properties

| Property | Type |
| ------ | ------ |
| <a id="property-metadata"></a> `metadata?` | `object` |

## Variables

### A2A\_EXTENSION\_URIS

> `const` **A2A\_EXTENSION\_URIS**: readonly `string`[]

The extension's URIs, in order of preference. The first is the one written when the client activated none.

***

### binding

> `const` **binding**: [`Refusal`](https://lcp.integraledger.com/reference/api.md#refusal)

A2A signs nothing per transaction, so it has no pairing: a caller asked for an A2A pairing can answer with this
refusal.

***

### delivery

> `const` **delivery**: `object`

What the carrier proves.

#### Type Declaration

| Name | Type |
| ------ | ------ |
| <a id="property-proves"></a> `proves` | `string` |

## Functions

### agentExtension()

> **agentExtension**(`o?`): [`A2aAgentExtension`](#a2aagentextension)[]

One Agent Card `capabilities.extensions[]` entry per listed URI. `required` defaults to false.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `o?` | \{ `required?`: `boolean`; \} |
| `o.required?` | `boolean` |

#### Returns

[`A2aAgentExtension`](#a2aagentextension)[]

***

### place()

> **place**(`task`, `h`, `link`, `a2aExtensions?`): [`Refusal`](https://lcp.integraledger.com/reference/api.md#refusal) \| [`A2aTask`](#a2atask)

A copy of the task whose `metadata` carries `{type, value, legalContextUrl}` under the listed URI the request's
`A2A-Extensions` value activated, or the first listed URI. Other metadata is kept. A task that is not an object, or
that carries a `refused` member, is `a2a/legal-context-malformed`.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `task` | [`A2aTask`](#a2atask) |
| `h` | `` `0x${string}` `` |
| `link` | `string` |
| `a2aExtensions?` | `string` |

#### Returns

[`Refusal`](https://lcp.integraledger.com/reference/api.md#refusal) \| [`A2aTask`](#a2atask)

***

### read()

> **read**(`task`): [`Refusal`](https://lcp.integraledger.com/reference/api.md#refusal) \| \{ `h`: `` `0x${string}` ``; `link`: `string`; \}

The hash and the link from the task's `metadata`, under a listed URI. No other key is read. Values under two listed
URIs must agree.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `task` | [`A2aTask`](#a2atask) |

#### Returns

[`Refusal`](https://lcp.integraledger.com/reference/api.md#refusal) \| \{ `h`: `` `0x${string}` ``; `link`: `string`; \}

***

### requested()

> **requested**(`a2aExtensions`): `boolean`

True when the request's `A2A-Extensions` value names a listed URI exactly: the value split on commas, each element
trimmed of SP and HTAB, compared case-sensitively. The value is at most 8,192 characters with at most 64 elements;
a longer value, or one with more elements, is false.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `a2aExtensions` | `string` \| `undefined` |

#### Returns

`boolean`
