diff --git a/src/smarttools/web/docs_content.py b/src/smarttools/web/docs_content.py index f5c2e00..e6abb4e 100644 --- a/src/smarttools/web/docs_content.py +++ b/src/smarttools/web/docs_content.py @@ -27,8 +27,9 @@ Create tools that work with any AI provider and compose them like Unix pipes.
# Install SmartTools
pip install smarttools
-# Create your first tool interactively
-smarttools create
+# Create your first tool (choose your style)
+smarttools ui # Visual builder with menus
+smarttools create # CLI wizard
# Or install a tool from the registry
smarttools registry install official/summarize
@@ -36,6 +37,12 @@ smarttools registry install official/summarize
# Use it!
cat article.txt | summarize
+Two Ways to Build
+smarttools ui launches a visual builder with menus and forms.
+ smarttools create uses a command-line wizard. Both create the same YAML config files.
Each tool is a YAML file that defines:
Not everyone wants to write YAML by hand. SmartTools includes a full-featured +terminal UI that lets you create, edit, and test tools with menus and forms—no text editor required.
+ +What You'll Learn
+Start the UI with a single command:
+ +smarttools ui
+
+You'll see a menu-driven interface that works in any terminal:
+ +┌─────────────────────────────────────────────────────────┐ +│ SmartTools Manager │ +├─────────────────────────────────────────────────────────┤ +│ │ +│ [ List all tools ] │ +│ [ Create new tool ] │ +│ [ Edit existing tool ] │ +│ [ Delete tool ] │ +│ [ Test tool ] │ +│ [ Manage providers ] │ +│ [ Exit ] │ +│ │ +│ Use ↑↓ to navigate, Enter to select │ +│ │ +└─────────────────────────────────────────────────────────┘+
Pro Tip: Mouse Support
+If you have urwid installed (pip install urwid),
+ the UI supports mouse clicks! Just click on menu items instead of using arrow keys.
Select "Create new tool" to open the tool builder. It has two main sections:
+ +1. Info & Arguments
+2. Processing Steps
+smarttools uisummarize--length, default to 100{input} and {length}The UI makes it easy to add, edit, and delete AI providers without touching config files:
+ +┌─────────────────────────────────────────────────────────┐ +│ Manage Providers │ +├─────────────────────────────────────────────────────────┤ +│ │ +│ claude claude -p │ +│ opencode opencode │ +│ mock echo '[MOCK RESPONSE]' │ +│ ──────────────────────────────────────── │ +│ [ + Add New Provider ] │ +│ [ ← Back to Main Menu ] │ +│ │ +└─────────────────────────────────────────────────────────┘+
Select a provider to edit or delete it. Adding a new provider shows a form:
+ +claude)claude -p)Before deploying a tool, test it with the built-in mock provider:
+ +This lets you verify your prompts and variable substitution without making real API calls.
+ +| Key | +Action | +
|---|---|
↑ / ↓ |
+ Navigate menu items | +
Enter |
+ Select / confirm | +
Esc |
+ Cancel / go back | +
Tab |
+ Move to next field (in forms) | +
q |
+ Quit the application | +
SmartTools automatically uses the best available terminal UI library:
+ +urwid (Best)
+Mouse support, smooth
+pip install urwid
snack
+BIOS-style dialogs
+apt install python3-newt
dialog/whiptail
+Fallback option
+apt install dialog
When should you use each?
+ +| Use the UI when... | +Use YAML when... | +
|---|---|
| You're new to SmartTools | +You're comfortable with YAML | +
| Building your first few tools | +Making quick edits | +
| Managing providers | +Copying tools between machines | +
| Testing interactively | +Version control integration | +
Now that you know both ways to build tools:
+ +