* @brief Input schema for fs.read. */
| 457 | * @brief Input schema for fs.read. |
| 458 | */ |
| 459 | static QJsonObject fsReadInputSchema() |
| 460 | { |
| 461 | QJsonObject props; |
| 462 | props[QStringLiteral("path")] = |
| 463 | makeProperty(QStringLiteral("string"), |
| 464 | QStringLiteral("File path relative to the workspace folder, or an absolute " |
| 465 | "dragged-in path. Text files only.")); |
| 466 | props[QStringLiteral("offset")] = |
| 467 | makeProperty(QStringLiteral("integer"), |
| 468 | QStringLiteral("Byte offset to start at; follow nextOffset to " |
| 469 | "page large files. Default 0.")); |
| 470 | props[QStringLiteral("limit")] = makeProperty( |
| 471 | QStringLiteral("integer"), |
| 472 | QStringLiteral("Max bytes to return this call (capped at 32 KB). Default is the cap.")); |
| 473 | return makeObjectSchema(props, QJsonArray{QStringLiteral("path")}); |
| 474 | } |
| 475 | |
| 476 | /** |
| 477 | * @brief Input schema for fs.search. |
no test coverage detected