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 | 中文
Use dsh-agent-tool-presentation in an agent preset to fix whether models see every native tool schema, only run_code with a generated SDK, or both forms. Each preset can choose independently, so native and PTC agents can share one process without sharing tool catalogs. Selecting ptc or both requires a compatible code runtime; a deployment without one rejects the preset at mount time before its first prompt. The mode field is required when this package is present, while omitting the package keeps the deployment default.
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.