bootspring_agent
Invoke expert agents to get specialized guidance and assistance.
Overview#
The bootspring_agent tool allows you to invoke any of Bootspring's 12 expert agents. Each agent brings deep expertise in a specific domain.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
agent | string | Yes | Agent identifier |
context | string | Yes | Context or question for the agent |
options | object | No | Additional options |
Available Agents#
| Identifier | Agent Name |
|---|---|
frontend-expert | Frontend Expert |
backend-expert | Backend Expert |
database-expert | Database Expert |
devops-expert | DevOps Expert |
security-expert | Security Expert |
testing-expert | Testing Expert |
performance-expert | Performance Expert |
mobile-expert | Mobile Expert |
api-expert | API Expert |
ui-ux-expert | UI/UX Expert |
software-architect | Software Architect |
debugging-detective | Debugging Detective |
Options Object#
| Option | Type | Default | Description |
|---|---|---|---|
format | string | "markdown" | Response format: markdown, json, code |
includeCode | boolean | true | Include code examples |
verbosity | string | "normal" | Detail level: brief, normal, detailed |
Usage Examples#
Basic Agent Invocation#
Use the bootspring_agent tool with:
- agent: "frontend-expert"
- context: "Help me create an accessible dropdown menu"
Response:
1# Accessible Dropdown Menu
2
3Here's how to create an accessible dropdown menu component...
4
5## Implementation
6
7```tsx
8function Dropdown({ options, value, onChange }) {
9 // ... code
10}Key Accessibility Features#
- Keyboard navigation (Arrow keys, Enter, Escape)
- ARIA attributes for screen readers
- Focus management ...
### With Options
Use the bootspring_agent tool with:
- agent: "database-expert"
- context: "Design a schema for user roles and permissions"
- options: { format: "code", verbosity: "detailed" }
### Chaining Agents
For complex tasks, chain multiple agents:
-
Use bootspring_agent with agent: "software-architect" context: "Plan a notification system architecture"
-
Use bootspring_agent with agent: "database-expert" context: "Design the notification schema based on this architecture: [previous response]"
-
Use bootspring_agent with agent: "backend-expert" context: "Implement the notification API endpoints"
## Agent Selection Guide
| Scenario | Recommended Agent |
|----------|------------------|
| Building React components | frontend-expert |
| Creating API endpoints | backend-expert |
| Designing database schemas | database-expert |
| Setting up CI/CD | devops-expert |
| Security review | security-expert |
| Writing tests | testing-expert |
| Performance optimization | performance-expert |
| React Native/Flutter | mobile-expert |
| API design | api-expert |
| Design systems | ui-ux-expert |
| Architecture decisions | software-architect |
| Debugging issues | debugging-detective |
## Response Format
### Markdown Format (Default)
```markdown
# [Topic]
## Overview
[Brief explanation]
## Implementation
[Code and details]
## Best Practices
[Recommendations]
## Related Resources
[Links and references]
JSON Format#
1{
2 "topic": "Accessible Dropdown Menu",
3 "overview": "...",
4 "implementation": {
5 "code": "...",
6 "explanation": "..."
7 },
8 "bestPractices": ["..."],
9 "resources": ["..."]
10}Code Format#
Returns primarily code with inline comments:
1// Accessible Dropdown Menu Component
2// Implements ARIA patterns for dropdown menus
3
4interface DropdownProps {
5 // ...
6}
7
8export function Dropdown({ options, value, onChange }: DropdownProps) {
9 // Implementation...
10}Custom Instructions#
Configure agent behavior in your config:
1// bootspring.config.js
2module.exports = {
3 agents: {
4 customInstructions: {
5 'frontend-expert': `
6 Always use TypeScript.
7 Use Tailwind CSS for styling.
8 Follow our component naming convention.
9 `,
10 },
11 },
12};Error Handling#
Invalid Agent#
1{
2 "success": false,
3 "error": {
4 "code": "INVALID_AGENT",
5 "message": "Unknown agent: 'invalid-agent'",
6 "availableAgents": ["frontend-expert", "backend-expert", ...]
7 }
8}Missing Context#
1{
2 "success": false,
3 "error": {
4 "code": "MISSING_CONTEXT",
5 "message": "Context is required for agent invocation"
6 }
7}Best Practices#
Be Specific#
Instead of: "Help with the frontend" Try: "Help me create a form with email and password fields, validation, and error states"
Provide Context#
Include relevant information:
- Current tech stack
- Existing patterns
- Constraints or requirements
Use the Right Agent#
Match your task to the agent's expertise for best results.
Related Tools#
- bootspring_search - Search before asking
- bootspring_skill - Apply patterns from agents