DeepSeek Harness

DeepSeek Harness: Tool Arguments or Permissions?

· 6 min read · 中文版

A DeepSeek Harness tool failure can arise from invalid input, an authorization decision, or the tool's own execution. Identify the stage and evidence before changing either arguments or permissions.

DeepSeek Harness: where can a call fail?

The tools reference describes a pipeline: arguments are materialized as JSON, pre-execution listeners decide allow, deny or ask, monotonic guards can deny, and dispatch reaches the registered tool. Results then pass through projection and post-execution processing. First-party tools built with defineTool validate and narrow their arguments before their implementation runs. A raw ToolDefinition validates its own input. A failure can therefore be reported before the body, by the body, or by later processing; a single error label does not establish all those stages.

An argument error concerns what the call supplied against the tool's contract. An approval decision concerns whether a particular action may proceed. These can coexist: correcting one does not prove the other will pass. In particular, policy checks precede the tool body in the documented pipeline, so do not assume every denied call has already had its tool-specific arguments validated.

Compare argument validation, policy decisions and execution evidence

DeepSeek Harness: what evidence separates the cases?

The session's tool/call records the tool name, call ID and raw model-produced argument string; tool/result pairs the result with the call. Its optional structured failure identity and reason are outside the model-facing message. The session reference says those error details are present only for an error result and can themselves be absent. A UI may expose less detail than the underlying record, so record exactly what you can observe.

EvidenceInvestigateDo not infer
A required field or type is rejectedThe tool's actual parameter schema and supplied valueThat changing approval policy will help
A policy or guard supplies a denial reasonThe action and applicable decisionThat the input would otherwise pass validation
approval/decided reports rejectedThe decision and effective policyThat a human necessarily rejected it
Tool body reports a filesystem or service errorThe named operation and its environmentThat every access error is a Harness approval decision
No structured failure identity is presentThe available message and surrounding eventsThat the call succeeded or that a particular stage failed

The schema is tool-specific. The tools reference describes required properties, types and constraints; its supported raw JSON Schema subset includes enum, const, oneOf and object openness. Compare the exact value and installed tool's schema instead of guessing a universal set of parameters. See finding tool parameters for the catalog workflow.

DeepSeek Harness: how do approval outcomes differ?

The approval reference defines four outcomes. allowed-once authorizes only the requested action. rejected, cancelled and unavailable are denied by callers. unavailable can mean no suitable answerer, an answerer that throws, or a nonconforming response. A cancelled request is a withdrawn question, not an invalid tool argument.

Under ask, the service delegates to the composed answerers; no answer defaults to unavailable. Under never, an approval request returns rejected without asking an answerer. The effective policy comes from the last session policy event, falling back to service configuration. Thus a rejected result alone is not enough to say that a person clicked a rejection button. The request and decision audit events have a matching approval identity; that identity is distinct from a tool-call ID.

A tool policy may deny without an approval request at all. Guards run after the extensible pre-execution waterfall and can only reduce permission. Consequently, an absence of an approval dialog does not prove an argument error. It also does not prove the presence of a guard: the observed reason and relevant records are necessary to distinguish possibilities.

DeepSeek Harness: what should I check first?

  1. Capture the tool name, call ID, exact sanitized arguments and the error shown. Preserve the session and installed version; omit credentials, private paths and sensitive outputs when sharing.
  2. Read the tool's current schema and documentation. Check required fields, types and allowed values against the actual request. Do not add fields or change spelling based on another tool's schema.
  3. Look for a policy denial or approval record. If present, pair the request and outcome and examine the effective policy. Distinguish a denial from a cancelled or unavailable answerer.
  4. If the body reached execution, inspect the underlying operation's error and environment. A file permission, missing service or external failure requires its own evidence. Do not call it a Harness approval rejection merely because access failed.
  5. Change one supported input or address the specific authorized policy issue, then retry the smallest relevant operation. Record the new result. A changed error can reveal a second problem that was previously masked.

For example, a missing required argument is a reason to correct the input. If the next attempt asks for approval, that is a separate decision on the actual action. If no schema error is visible but the approval service reports unavailable, inventing a new argument does not supply an answerer. Neither scenario establishes that the operation is appropriate to approve.

DeepSeek Harness: what are the limits and safety boundaries?

A request may be denied for reasons outside the approval service, and a tool may report errors in its own format. The references do not promise that all errors have globally unique diagnostic text, or that an argument error is always visible before a policy decision. When a result lacks enough detail, keep the diagnosis provisional and inspect the installed tool and composition.

Do not broaden permissions merely to test a malformed request. Review the actual action before any grant, and use the least access appropriate to the task. allowed-once describes the scope of a decision, not a guarantee about the action's effects. Logs can contain sensitive arguments and results; redact them before sharing and preserve enough non-sensitive detail to reproduce the failure.

DeepSeek Harness: what do the terms mean?

  • Parameter schema: the declared shape and constraints for a tool's input.
  • Pre-execution policy: the decision stage that may allow, deny or ask before dispatch.
  • Guard: a final policy check that may deny but cannot reverse a denial.
  • Approval outcome: the decision for one requested action, including unavailable or cancelled cases.
  • Tool result: the settled outcome, which may carry optional diagnostic identity beyond model-facing content.

Frequently asked questions

Does rejection mean the arguments are valid?

No. A policy decision does not establish that tool-specific validation passed.

Does rejected mean a person clicked reject?

No. The never policy returns rejected without dispatching an answerer.

Does an access error always mean an approval denial?

No. The underlying tool or environment can report its own access failure.

Sources

Every claim in this article was checked against the sources below. Community discussions are user reports, not official behavior.

  1. Tools
  2. User approval
  3. Sessions

This is an independent community article, not official DeepSeek documentation. Listing a plugin in the registry is not a security review.

← Back to all articles

DeepSeek Harness: Tool Arguments or Permissions?