Start a procedure from an endpoint the site already calls
procedure_draftGenerates runnable code drafts from a site's observed API traffic, including method, path and parameters. Use it before hand-writing a fetch to build on endpoints already proven to return 2xx.
Instructions
Turn an endpoint from this site's observed API into working code you can run, adjust and save. Use it before writing a fetch by hand: the method, the path, the parameter names and the fact that it returns 2xx were all learned from the site's own traffic, so a draft describes something that has already worked rather than something that might.
Pass no name to see what is available. What is left for you is the part only you know: what the endpoint is for, and which field of the response actually answers the question.
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": {
"url": "<url>"
},
"name": "procedure_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The site. | |
| endpoint | No | Which one, as `GET /api/v1/servers` or just a distinctive fragment of the path. Omit to list the candidates. |