description: "Declare accessible files as deliverables with present; configuration, Session ownership, and source-file opening."
English | 中文
Use present to declare final files accessible through the Session filesystem, including files created through shell commands. Users open the current source files in their default application. The tool records paths and optional descriptions without copying file contents.
The standard, ptc, and cordis agent presets mount this plugin. Call present with files: [{ path, description? }] after creating the files. Files must be regular files accessible through the Session filesystem. Relative paths resolve against the Session working directory; absolute paths may name files outside it, including /tmp or Downloads. Missing files, directories, final symbolic links, and provider-denied paths fail the call. Files in a shell sandbox’s private /tmp must first be written somewhere the Session filesystem can access.
Mount it in an agent's Cordis composition with tools, fs, and the turnBoundary Session projection available:
- name: '@deepseek-ai/dsh-tool-present'
config:
maxFiles: 8
| Field | Default | Meaning |
|---|---|---|
maxFiles |
8 |
Positive maximum file count per call |
The file-count limit is validated at mount. The tool requires an agent Session with a workspace and an open turn. Delivery belongs to the calling Session; a parent must call present itself to declare files created by a subagent.
The present schema asks for existing accessible files: “Declare existing files accessible through the Session filesystem as final deliverables. When a file you create or update is an output the user asked to receive, you must call present after writing it and before your final response, including files created through Bash or code execution. Mentioning its path in your reply does not replace this call. The files must already exist. The user opens the current source files; their contents are not copied or preserved.” Results report Presented <path> for each file; the program result and durable event contain paths and optional descriptions.
One tool schema per mounted agent and one result line per delivered file. File bytes do not enter model messages.
The tool schema is static for the mount lifetime. Delivery result text extends the conversation without rewriting its prompt prefix.