noark5_download_dokumentobjekt
Download a Noark5 dokumentobjekt's file by resolving its referanseFil link, saving content to a local or temporary path. Provide the objekt URL to get the saved file path and metadata.
Instructions
Download file content from a dokumentobjekt.
Resolves the referanseFil HATEOAS link on the given dokumentobjekt and downloads the binary content to disk (per N5TG chapter 6). Use noark5_list_dokumentobjekter first to find the desired objekt URL.
Args: dokobj_url: The self-href URL of the dokumentobjekt to download. output_path: Optional file path to save the downloaded content. If empty, a temporary file in /tmp/ is created with a random name. Note: Temporary files are NOT removed automatically. It is the user's responsibility to clean them up when no longer needed.
Returns saved file path and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dokobj_url | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |