Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Edsl File Store?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/expectedparrot-edsl-file-store)
---
name: edsl-file-store
description: Use EDSL FileStore and FileStoreList objects for files in scenarios and survey answers.
tags: [edsl, reference]
---
# EDSL FileStore
For portable document inputs, run `ep scenarios create --from-file A.pdf --from-file B.pdf --file-key artwork -o proofs.ep`. If a CSV or XLSX already assigns files to records, use `ep scenarios create --from-csv handoff/placements.csv --file-column artwork -o placements.ep`. Add `--id-field placement` to identify every missing reference by record. Run `ep scenarios files placements.ep --id-field placement --limit 0` to verify the embedded bytes by row, field and SHA-256. Each named cell holds a path relative to the table's folder. The saved scenario contains the original file bytes. Reference `{{ scenario.artwork }}` in each question that uses it.
`FileStore(path=...)` wraps a local image, document, data file, or other supported file for use as an EDSL value. Place it in a `Scenario`, then reference the scenario field in question text, for example `{{ scenario.file_path }}`. Reference the FileStore field in **each question** that needs the file. Saying “see the attached image” alone leaves the model without the artwork. Reopen the saved job with `ep jobs preview-prompt signs.ep direction --interview-index 0 --expect-files 1`. For a conditional comparison, repeat `--expect-file-sha256 HEX` in the intended order, once per approved file, and check an assignment for each branch. This verifies both the contents and the order before inference. The attachment list includes the MIME type, byte count, and SHA-256 so you can verify the input even when two files have the same name.
A later model question can receive a file from a prior upload. Use `{{ upload.answer }}` for the whole list or `{{ upload.answer[1] }}` for the second file. The rendered question determines which files are attached, including the selected branch of a conditional. Repeating the same reference reuses its first attachment. To test the upload locally, run `ep jobs preview-prompt packet.ep review --answer-file upload internal.txt --answer-file upload public.txt --expect-file-sha256 HEX`, using the digest for the expected file.
`FileStore` also provides helpers such as `extract_text()`, `mime_type`, `is_image()`, and `to_scenario_list()` for supported formats. File upload answers can be converted with `FileStore.from_file_upload_answer`; generated image answers can be passed to later image-generation questions. See the [detailed FileStore guide](references/detailed-guide.md).
Related bundles: `edsl:edsl-scenario-lists`, `edsl:edsl-surveys`.
A scenario can store the file field's name in another field. For example, `{{ scenario[scenario.pick] }}` attaches the `crop` file when `pick` is `"crop"`. Use `ep jobs preview-prompt` with `--interview-index` and `--expect-file-sha256` to verify each selection in a saved job.