adapt_query
Transform a query from one programming language to another using tree-sitter-based code analysis. Ideal for adapting code queries across different languages with accurate context management.
Instructions
Adapt a query from one language to another.
Args:
query: Original query string
from_language: Source language
to_language: Target language
Returns:
Adapted query
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": {
"query": "<query>",
"from_language": "<from_language>",
"to_language": "<to_language>"
},
"name": "adapt_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_language | Yes | ||
| query | Yes | ||
| to_language | Yes |