{"record":{"id":"35a44fe05af73c36","repo":"diegosouzapw/OmniRoute","slug":"missing-required-fields-path-content","errorCode":null,"errorMessage":"Missing required fields: path, content","messagePattern":"Missing required fields: path, content","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/skills/builtins.ts","lineNumber":240,"sourceCode":"      encoding,\n      context: context.apiKeyId,\n    };\n  },\n\n  file_write: async (input, context) => {\n    const {\n      path: inputPath,\n      content,\n      append = false,\n      overwrite = true,\n    } = input as {\n      path: string;\n      content: string;\n      append?: boolean;\n      overwrite?: boolean;\n    };\n    if (!inputPath || typeof inputPath !== \"string\" || typeof content !== \"string\") {\n      throw new Error(\"Missing required fields: path, content\");\n    }\n\n    const bytesWritten = Buffer.byteLength(content, \"utf8\");\n    if (bytesWritten > MAX_FILE_BYTES) {\n      throw new Error(`Skill file write exceeds the ${MAX_FILE_BYTES} byte limit`);\n    }\n\n    const { resolved, relative } = resolveWorkspacePath(inputPath, context);\n    await fs.mkdir(path.dirname(resolved), { recursive: true });\n    await fs.writeFile(resolved, content, {\n      encoding: \"utf8\",\n      flag: append ? \"a\" : overwrite ? \"w\" : \"wx\",\n    });\n\n    return { success: true, path: relative, bytesWritten, context: context.apiKeyId };\n  },\n\n  http_request: async (input, context) => {","sourceCodeStart":222,"sourceCodeEnd":258,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/skills/builtins.ts#L222-L258","documentation":"Error \"Missing required fields: path, content\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/skills/builtins.ts:240 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}