codecall:search
Search for tools by natural language query using semantic embeddings.Request Schema
Response Schema
Examples
Response Example
Search Strategy
CodeCall supports two embedding strategies:codecall:describe
Get detailed schemas and documentation for specific tools.Request Schema
Response Schema
usageExamples returns up to 5 examples per tool. User-provided examples from the @Tool decorator take priority, with smart-generated examples filling remaining slots based on tool intent (create, list, get, update, delete, search).Example
Security Note
codecall:execute
Execute a JavaScript (AgentScript) plan that orchestrates multiple tools.Request Schema
Response Schema
Success:Syntax Error
Syntax Error
Validation Error (AST)
Validation Error (AST)
Runtime Error
Runtime Error
Tool Error
Tool Error
Timeout
Timeout
Example
AgentScript API
Insidecodecall:execute scripts, these functions are available:
callTool(name, input, options?)
Call a tool and get the result.getTool(name)
Get metadata about a tool (name, description, schemas).codecallContext
Read-only context object passed in the request.console (if enabled)
Standard console methods, captured in response logs.Console is only available if
vm.allowConsole: true in plugin config. Logs are returned in the logs array of the
response.__safe_parallel(fns, options?)
Execute multiple async operations in parallel with controlled concurrency.
Limits:
Error Handling:
codecall:invoke
Direct tool invocation without JavaScript execution. Useful for simple single-tool calls.Request Schema
Response Schema
Success:Example
When to Use Invoke vs Execute
Error Codes Reference
Script Execution Errors
Worker Pool Errors (when adapter=‘worker_threads’)
Error Handling Patterns
Basic Pattern: throwOnError
Retry Pattern
Fallback Pattern
Partial Success Pattern
Debugging Guide
Using console.log
Interpreting Error Messages
Maximum iteration limit exceeded
Maximum iteration limit exceeded
Cause: Loop ran more than
maxIterations times
Fix: Use pagination or filter data before loopingMaximum tool call limit exceeded
Maximum tool call limit exceeded
Cause: Script called more than
maxToolCalls tools
Fix: Batch operations or use __safe_parallelScript execution timed out
Script execution timed out
Cause: Script ran longer than
timeoutMs
Fix: Optimize, use less data, or increase timeoutIdentifier 'X' is not allowed
Identifier 'X' is not allowed
Cause: Used a blocked identifier (eval, require, etc.)
Fix: Use allowed alternatives
Development Mode
For easier debugging during development:Testing Strategy
Unit Testing AgentScript
Integration Testing with Mock Tools
Testing Security Rules
CI/CD Integration
Rate Limiting
CodeCall meta-tools respect FrontMCP’s rate limiting:Related
AgentScript Guide
Learn the AgentScript language in depth
Configuration
Configure meta-tool behavior and limits