{"record":{"id":"43ccb6b58a6cba92","repo":"deepseek-ai/deepseek-harness","slug":"parameter-parameter-is-required-for-command","errorCode":null,"errorMessage":"Parameter `${parameter}` is required for command: ${command}","messagePattern":"Parameter `(.+?)` is required for command: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/fs/tool-str-replace-editor/src/index.ts","lineNumber":129,"sourceCode":"      'FS_NOT_FOUND',\n    )\n  }\n  if (info.type === 'directory' && command !== 'view') {\n    throw new FsError(\n      `The path ${target.displayPath} is a directory and only the \\`view\\` command can be used on directories`,\n      'FS_NOT_REGULAR_FILE',\n    )\n  }\n  return info\n}\n\nfunction requiredForCommand(\n  value: string | undefined,\n  parameter: string,\n  command: string,\n  allowEmpty = true,\n): string {\n  if (value === undefined) throw new Error(`Parameter \\`${parameter}\\` is required for command: ${command}`)\n  if (!allowEmpty && value.length === 0) {\n    throw new Error(`Parameter \\`${parameter}\\` is empty for command: ${command}`)\n  }\n  return value\n}\n\nfunction formatFileView(\n  path: string,\n  content: string,\n  maxOutputChars: number,\n  viewRange?: number[],\n): string {\n  const allLines = content.split('\\n')\n  let lines = allLines\n  let initialLine = 1\n  let finalLine: number | undefined\n  let prompt = `Here's the content of ${path} with line numbers (which has a total of ${allLines.length} lines)`\n  if (viewRange !== undefined) {","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/fs/tool-str-replace-editor/src/index.ts#L111-L147","documentation":"Error \"Parameter `${parameter}` is required for command: ${command}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/fs/tool-str-replace-editor/src/index.ts:129 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"}