SpecifyDocs

file_link

tools/call

Attach a file to an item; whoever can see the item can then open it. Refused with WIDER_AUDIENCE when that would widen who can open the file.

Scopes

link:files

The target entity's scopes apply too: a task needs read:projects, and write:projects to link; a memory needs read:memory, and curate:memory (or contribute:memory on your own proposal) to link, and read:agent_sessions when it was recorded from an agent session; a document follows its owner's document scopes; a skill needs read:skills and write:skills and must be the connection owner's own. Without them the entity reads as NOT_FOUND. Whoever can see the item can then open the file, read only. The connection attaches only files its owner can already open; a file that would reach more people than can open it now is refused with WIDER_AUDIENCE, and a person attaches it in Specify. A file tied to a Design item (a capture or a revision preview) also needs read:design and sight of the item; without them it is left out or reads as NOT_FOUND.

Inputs

accountIdstringRequired
serviceTenancyIdstringRequired
expectedAuthorizationVersionstring
idstringRequired
expectedVersionintegerRequired
idempotencyKeystringRequired
targetobjectRequired

Returns

The file link view. A call returns content[0].text with the JSON result and structuredContent.result with the same value.

Listed when

The connection holds the tool's Files scope.