* @brief Input schema for fs.write and fs.append. */
| 493 | * @brief Input schema for fs.write and fs.append. |
| 494 | */ |
| 495 | static QJsonObject fsWriteInputSchema() |
| 496 | { |
| 497 | QJsonObject props; |
| 498 | props[QStringLiteral("path")] = makeProperty( |
| 499 | QStringLiteral("string"), |
| 500 | QStringLiteral("Destination path under the workspace 'AI/' subfolder, e.g. 'notes.md' " |
| 501 | "or 'exports/data.csv'. Paths outside AI/ are rejected.")); |
| 502 | props[QStringLiteral("content")] = |
| 503 | makeProperty(QStringLiteral("string"), QStringLiteral("UTF-8 text to write.")); |
| 504 | return makeObjectSchema(props, QJsonArray{QStringLiteral("path"), QStringLiteral("content")}); |
| 505 | } |
| 506 | |
| 507 | /** |
| 508 | * @brief Input schema for fs.delete. |
no test coverage detected