find_peaks
Detect and return local maxima (peaks) in XY curve data by specifying direction (positive, negative, or both) and neighborhood size.
Instructions
Find peaks in an XY curve (local-maximum method).
Args: direction: positive, negative, or both local_points: neighborhood size for the local-maximum search
Returns: JSON list of {x, y} peak positions
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": {
"data_book": "<data_book>",
"data_sheet": "<data_sheet>",
"x_col": "<x_col>",
"y_col": "<y_col>"
},
"name": "find_peaks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_book | Yes | ||
| data_sheet | Yes | ||
| x_col | Yes | ||
| y_col | Yes | ||
| direction | No | positive | |
| local_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |