rename_path
Rename keys in React component props, state, hooks, or context to update debugging information during development.
Instructions
Rename a key in props/state/hooks/context
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": {
"id": "<id>",
"target": "<target>",
"path": "<path>",
"oldKey": "<oldKey>",
"newKey": "<newKey>"
},
"name": "rename_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Element ID | |
| target | Yes | Target | |
| hookIndex | No | Hook index (if target is hooks) | |
| path | Yes | Path to the key | |
| oldKey | Yes | Old key name | |
| newKey | Yes | New key name |