Read an H5P package
read_h5pReads a local .h5p package to extract its type, version, title, language, and content in a build_h5p-compatible shape for review or modification before rebuilding.
Instructions
Read what a local .h5p package holds: its type and version, title, language and its content, in the same shape build_h5p takes, so it can be reviewed, or changed and built again with build_h5p. Packages that bring their libraries are read too (their content only; libraries lists them). supported says whether build_h5p builds this type at this version. Only reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The .h5p file (absolute path) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| type | Yes | The main library, such as H5P.MultiChoice | |
| media | No | Files under content/ besides content.json | |
| title | Yes | ||
| content | Yes | ||
| version | No | ||
| language | Yes | ||
| libraries | No | Libraries the package brings with it | |
| supported | Yes | build_h5p builds this type at this version |