get_code_examples
Search documentation for code examples matching your query. Get working examples for Griptape patterns like RAG pipelines, custom tools, or workflows.
Instructions
Search for code examples related to a topic.
Finds code snippets from the documentation that match your query. Useful for finding working examples of Griptape patterns.
Args: topic: What you want examples of (e.g. "RAG pipeline", "custom tool", "workflow")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic": "<topic>"
},
"name": "get_code_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |