description: "The agent-plane presentation selector for users and maintainers choosing, configuring, or debugging which form of its tools an agent preset's models see."
English | 中文
An agent preset carries dsh-agent-tool-presentation to choose which form of its tools the model sees: native (every visible schema), ptc (only run_code plus a generated SDK), or both. The tool registry itself stays on the host plane — this row only declares the presentation for the mounting agent, so a PTC mode session runs beside native ones in one process, each seeing its own catalog. A PTC mode waits for a code runtime before mounting, so a preset selecting PTC mode against a deployment without one fails at mount instead of at the first prompt. The mode field is required: a preset without this row already gets the deployment default. Choose it when an agent preset needs to fix the tool form its agents' models see.
Add this row to an agent preset to fix how every agent joined to that preset sees its tools. native presents each visible tool schema as a function definition; ptc presents only the run_code transport plus a generated SDK and the rule that only run_code may be called directly; both presents both forms. Agents that declare nothing get the deployment-wide mode on the dsh-tools row.
- name: '@deepseek-ai/dsh-agent-tool-presentation'
config:
mode: ptc
| Field | Default | Meaning |
|---|---|---|
mode |
required | native — every schema; ptc — run_code plus generated SDK; both — both forms |
The generated configuration catalog is the exhaustive source for every accepted field. mode is required rather than defaulted because a preset without this row inherits the deployment default.
Selecting ptc or both needs a composed code runtime (ctx.codeRuntime) whose language has a registered SDK renderer — the TypeScript runtime ships via dsh-code-runtime-worker-thread, and both the TypeScript and Python SDK renderers are built into dsh-tools. A preset that selects a PTC mode against a deployment composing no such runtime refuses to mount, naming this row, so the failure lands where the operator can act instead of at the session's first request.
One agent declares one presentation. A second declaration in the same composition is refused rather than merged: two answers to "which form does the model see" is a contradiction, not an override.
The package-level contract is enough for most consumers; read these when you need the surrounding domain.
presentAs API.Indirectly, through the tool presentation it selects in dsh-tools — the row only chooses between the two projections dsh-tools owns and registers no prompt, schema, or result of its own.
No direct invalidation; the presentation is fixed when the agent is composed, so its request prefix is stable for the session's life.
These limits define when this row needs special care. They are current package constraints, not a task backlog.