find_peak_element
Finds a peak element in a list where an element is greater than its neighbors. Returns the index of any peak element found. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_peak_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nums | No | array, required, list of integers to search |