ToolCall Element
Element for invoking tools
ToolCall Element
Coming soon: This feature is not yet available. Please check back soon.
The <toolcall>
element invokes tools:
Prop | Type | Default |
---|---|---|
id? | string | - |
name | string | - |
description? | string | - |
Examples
Basic Tool Call
Tool with Description
Complex Tool Call
Usage Notes
- Invokes external tools
- Can pass parameters
- Supports async operations
- Handles tool responses
Best Practices
-
Tool Design
- Use descriptive names
- Document parameters
- Define clear purpose
- Handle errors
-
Parameter Handling
- Validate inputs
- Format data properly
- Handle defaults
- Check types
-
Error Management
- Handle failures
- Provide context
- Log issues