{"record":{"id":"4afeb3688b37f1be","repo":"deepseek-ai/deepseek-harness","slug":"invalid-args","errorCode":"INVALID_ARGS","errorMessage":"invalid arguments: ${violations.join('; ')}","messagePattern":"invalid arguments: (.+?)","errorType":"error_code","errorClass":"ToolArgsError","httpStatus":null,"severity":"error","filePath":"packages/core/tools/src/schema.ts","lineNumber":587,"sourceCode":"  const tool: ToolDefinition = {\n    name: options.name,\n    description: options.description,\n    parameters: parameters as unknown as Record<string, unknown>,\n    output: {\n      schema: outputSchema,\n      render(args: unknown, value: JsonValue): ContentBlock[] {\n        return userRender(args as InferArgs<S>, value as unknown as InferValue<NoInfer<O>>)\n      },\n      ...userPresentationMeta !== undefined ? {\n        presentationMeta(args: unknown, value: JsonValue): JsonValue {\n          return userPresentationMeta(args as InferArgs<S>, value as unknown as InferValue<NoInfer<O>>)\n        },\n      } : {},\n    },\n    ...(options.timeoutMs !== undefined ? { timeoutMs: options.timeoutMs } : {}),\n    async execute(args: unknown, exec: ToolRunContext): Promise<JsonValue> {\n      const violations = validate(args)\n      if (violations.length > 0) throw new ToolArgsError(violations)\n      return userExecute(args as InferArgs<S>, exec) as Promise<JsonValue>\n    },\n  }\n  if (userFinalizeContent) {\n    tool.finalizeContent = (exec, result) => userFinalizeContent(exec, result)\n  }\n  // Presentation is display-only and may run on REPLAY of arbitrary logged args\n  // (possibly from an older schema), so it must never throw: validate softly and\n  // fall back to `undefined` (a generic UI presentation) on any mismatch, rather\n  // than the hard `ToolArgsError` the execute path raises.\n  if (userPresentCall) {\n    tool.presentCall = (args: unknown): ToolCallView | undefined => {\n      if (validate(args).length > 0) return undefined\n      return userPresentCall(args as InferArgs<S>)\n    }\n  }\n  if (userPresentResult) {\n    tool.presentResult = (args: unknown, result: ToolResult): ToolResultView | undefined => {","sourceCodeStart":569,"sourceCodeEnd":605,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/tools/src/schema.ts#L569-L605","documentation":"Error \"invalid arguments: ${violations.join('; ')}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/tools/src/schema.ts:587 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}