show_behavior
Runs a command on both the previous and current code, then shows the real outputs side by side so reviewers can verify what a change does.
Instructions
Show reviewers what a change does. grasp runs your command twice, on the code from before this session and on the code now, and shows both real outputs side by side. The command runs from the project root with sh; it must start and stop anything it needs and print a short result. Use one call per behavior you want to demonstrate.
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": {
"title": "<title>",
"command": "<command>"
},
"name": "show_behavior"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | what the example shows, at most 8 words, e.g. Empty title is rejected | |
| expect | No | what the new code should print, in plain words | |
| command | Yes | shell command run from the project root; print one short line per case, like: empty title -> 400 title is required; start and stop anything it needs, e.g. a server, within the command | |
| decision | No | title of the decision this example demonstrates |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| summary | Yes |