Skip to content

Build your personal knowledge base with Trilium Notes

chore(llm): update backend script to be aware of the changes

Elian Dorana239eba6ce6e
diff --git a/apps/server/src/assets/llm/skills/backend_scripting.md b/apps/server/src/assets/llm/skills/backend_scripting.md
index 59ec934ece..f96d47d6c0 100644
--- a/apps/server/src/assets/llm/skills/backend_scripting.md
+++ b/apps/server/src/assets/llm/skills/backend_scripting.md
@@ -43,10 +43,19 @@ Backend scripts run in Node.js on the server. They have direct access to notes i
- `api.getAppInfo()` - get application info
### Libraries
-- `api.axios` - HTTP client
- `api.dayjs` - date manipulation
- `api.xml2js` - XML parser
-- `api.cheerio` - HTML/XML parser
+- `api.htmlParser` - HTML parser (node-html-parser), use `api.htmlParser.parse(html)` to parse
+- `api.cheerio` - **DEPRECATED**, use `api.htmlParser` instead
+
+### HTTP Requests
+Use the native `fetch()` API for HTTP requests:
+```javascript
+const response = await fetch('https://api.example.com/data');
+const data = await response.json();
+```
+
+Note: `api.axios` was removed in 2026 due to a supply chain security incident. Use `fetch()` instead.
### Advanced
- `api.transactional(func)` - wrap code in a database transaction