get_baseline_prompt
Get a ready-to-use test prompt for one function. Free — no subscription, no token budget, no rate limit.
Rendered deterministically from the function's AST plus its coverage rows: the signature, what to call, which exact lines never execute, which branches only go one way, what it raises, and which tests already touch it. Use this as the default way to turn "this function is untested" into "here is what to write".
get_generated_prompt is the paid, LLM-polished counterpart — it
adds repo conventions and richer context, but this one is free and
always available, and for most functions it is enough to write the
test from.
Also accepts a React sub-unit id. The prompt then matches what the
unit is: fire this handler on this element and assert the effect, or
render the component in the state that takes this branch. kind
and display_label come back alongside the prompt.
Errors if the function is already fully covered — there is nothing to prompt for. The exception is a covered function that no browser test and no recorded manual session has reached: that still has a real ask (drive it in a browser), so it returns a prompt saying exactly that.
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": {
"function_id": "<function_id>"
},
"name": "get_baseline_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_id | Yes |