chatbot-app/agentcore/skills/workspace/SKILL.md
Read and write files in the shared session workspace. Use this to access files created by any skill — code-agent outputs, office documents, images, and more. All within the same isolated session.
npx skillsauth add aws-samples/sample-strands-agent-with-agentcore workspaceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provides unified read/write access to all files in the current session. The userId and sessionId are injected automatically — you only specify the logical path.
| Prefix | What it accesses |
|--------|-----------------|
| code-agent/<file> | Files created by the code agent (auto-synced) |
| code-interpreter/<file> | Files saved by code interpreter via output_filename |
| documents/powerpoint/<file> | PowerPoint presentations |
| documents/word/<file> | Word documents |
| documents/excel/<file> | Excel spreadsheets |
| documents/image/<file> | Images from other tools |
Note: Code interpreter only saves to workspace when
output_filenameis set inexecute_code. Files fromexecute_commandorfile_operationsstay inside the sandbox.
See everything in the session:
workspace_list()
workspace_list("code-agent/")
Read a file the code agent created:
workspace_read("code-agent/calculator.png") # binary → base64
workspace_read("code-agent/report.md") # text → string
Pass a file from one skill to another:
result = workspace_read("documents/excel/data.xlsx") # encoding: base64
workspace_write("code-agent/data.xlsx", result["content"], encoding="base64")
encoding: "text" with plain string contentencoding: "base64"workspace_write accepts both encodings — use "base64" for binarydocumentation
Create, modify, and manage Word documents.
documentation
Wikipedia article search and retrieval
development
Search the web using DuckDuckGo for current information, news, and research topics.
tools
Current weather and multi-day forecasts worldwide