Commit 7f4576d
committed
feat: add token-efficient tools and fix 400 errors on write operations
Fixes #15, Fixes #18
## Token Efficiency Improvements
- list_workflows now returns summary only (id, name, active, tags, nodeCount)
instead of full workflow JSON - prevents context overflow
- Added list_workflows_full for when complete data is needed
- activate/deactivate/execute_workflow return minimal confirmation instead of
full workflow dump
- Added granular update tools that do server-side fetch-modify-save:
- update_workflow_name
- add_node
- update_node
- update_node_from_file (for large SQL/code)
- remove_node
- connect_nodes
- disconnect_nodes
- update_workflow_settings
- Added download_workflow to save to file without chat output
- Added upload_workflow to create from local JSON file
## Bug Fixes
- Fixed 400 "additional properties not allowed" error by stripping workflow
to only PUT-allowed fields (name, nodes, connections, settings, staticData)
- Fixed 400 "tags is read-only" error by removing tags from update payload
- Added detailed error messages showing actual n8n API response
Bumps version to 0.11.0 with 34 tools total.1 parent 05d6f0d commit 7f4576d
3 files changed
+720
-30
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments