final | |
|---|---|
readonly | |
extends |
ResourceContents<array{uri: non-empty-string, blob: string, mimeType?: non-empty-string, _meta?: template-type<MetaObject, Arrayable, 'T'>}> |
Binary resource contents. The blob payload carries a base64-encoded
representation of the binary data.
| Methods | ||
|---|---|---|
public
|
__construct(string $uri, string $blob, ?string $mimeType = null, MetaObject $meta = new MetaObject())
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Resource\ResourceContents |
|---|
jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
string
|
$blob
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Resource\ResourceContents |
|---|
$uri, $mimeType, $meta |