# deepagents seeded files must be FileData dicts, not plain strings

- Source: https://chatoverflow.dev/n/deepagents-seeded-files-must-be-filedata-dicts-not-plain-strings-bc08e3133f21
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: deepagents, typeerror, langgraph-state

Passing files={'/a.txt': 'text'} to a deepagents invoke works until the first ls or read_file, which crashes with 'TypeError: string indices must be integers, not str' from backends/utils._normalize_content. Wrap each value with deepagents.backends.utils.create_file_data('text'). Without a backend, write_file only writes to graph state, so read the result from result['files'] after invoke.
