Skip to content

Instantly share code, notes, and snippets.

@schappim
Created June 6, 2025 03:30
Show Gist options
  • Save schappim/ea12869d15f8aa0a6d94a5f51efad78c to your computer and use it in GitHub Desktop.
Save schappim/ea12869d15f8aa0a6d94a5f51efad78c to your computer and use it in GitHub Desktop.
{
"tools": [
{
"name": "search",
"description": "Searches for resources using the provided query string and returns matching results.",
"input_schema": {
"type": "object",
"properties": {
"query": { "type": "string", "description": "Search query." }
},
"required": ["query"]
},
"output_schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "ID of the resource." },
"title": { "type": "string", "description": "Title or headline of the resource." },
"text": { "type": "string", "description": "Text snippet or summary from the resource." },
"url": { "type": ["string","null"],"description": "URL of the resource (needed for citations)." }
},
"required": ["id", "title", "text"]
}
}
},
"required": ["results"]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment