Documentation Index
Fetch the complete documentation index at: https://docs.constants.io/llms.txt
Use this file to discover all available pages before exploring further.
What We’re Building
We’ll create a tool that filters a CSV file by a column value and outputs the filtered result — with a UI, API endpoint, and Slack access, all in about 10 minutes.Prerequisites
- A Constants account (sign up here)
- A script, GitHub repo, or idea for a tool
Step 1: Create Your Tool
From the dashboard, click Create new Tool. You have three options:Option A: Import from GitHub
Paste a URL pointing to your script:Option B: Upload Directly
Drag and drop your script files into the composer, or click the upload button. Multi-file projects are supported.Option C: Describe What You Need
Step 2: Review the Generated Interface
Constants defines an interface for your tool — the inputs it accepts and the outputs it produces. For our CSV filter example: Inputs:input_file— CSV file to process (file upload)filter_column— Column name to filter on (text)filter_value— Value to match (text)
filtered_count— Number of matching rows (number)output_file— Filtered CSV (downloadable file)
Step 3: Watch It Build
Constants generates your tool in parallel:- Frontend — A form-based UI with file upload, validation, and result display
- Backend — Python code that runs in a secure sandbox
Step 4: Configure Settings
Compute Tier
Compute Tier
Choose the right resources for your tool:
| Tier | Best For |
|---|---|
| Small | Light operations, simple filtering, API calls |
| Medium | Data processing, moderate computation (default) |
| Large | Heavy computation, video processing, large datasets |
| GPU | ML inference, image generation |
Credentials
Credentials
If your tool needs API keys or cloud credentials, add them in the Credentials section. They’re encrypted and injected securely at runtime — tool users never see the actual values.
Dependencies
Dependencies
The runtime includes pandas, numpy, scipy, cloud SDKs, ffmpeg, and more out of the box. Additional Python packages are added automatically based on your tool’s needs.
Step 5: Run Your Tool
- Upload your input CSV file
- Fill in the filter column and value
- Click Run
Step 6: Access Results
After the run completes:- Download output files (the filtered CSV)
- View structured output data (row counts, summaries)
- Inspect full execution logs
- Replay the run with the same inputs
Step 7: Share Your Tool
Share via Link
Click Share to get a link. Recipients can view the tool, enter their own parameters, and run it — no setup required.Share with Your Team
Add the tool to a team workspace:- All members get access based on their role
- Shared credentials work across the team
- Usage counts against the workspace quota
Use from Code or Agents
Your tool is automatically available via:- REST API —
POST /v1/run/your-tool-namewith an API key - MCP — any MCP-compatible agent can discover and use it
- Slack — mention the bot to run it conversationally
Step 8: Iterate
Use the conversation interface to refine your tool:- “Make the filter case-insensitive”
- “Add an option to output Excel format”
- “Support multiple filter conditions”
Next Steps
Features Overview
See everything Constants can do
API Reference
Set up programmatic access and agent integration
