find_code_examples
NEAR code examples on a topic from docs.near.org and gov.near.org, each code block run through check_code first: examples on live APIs come first, and a block that uses something removed or deprecated is listed after them with what in it is stale. Use for "show me how to call a contract from near-api-js", "cross-contract call in Rust".
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": "find_code_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most examples to return (default 4). | |
| topic | Yes | What the code should do or use, e.g. "ft_transfer_call", "cross contract call", "near-api-js view function". |