Web Eval
web_evalRuns arbitrary JavaScript in a web session and returns the last expression's value, which must be a plain JSON value (async code is not awaited: return JSON.stringify(...) or store the result and read it in a second call). Requires confirm=true; without it you get a preview of the code and nothing runs. Disabled when LMCP is in read-only mode. POWER-USER tool — a page could feed malicious code, so prefer web_find / web_read / web_extract for normal use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | Yes | JavaScript to evaluate on the page; the last expression's value is returned. | |
| confirm | No | Must be true to run the code. Without it, returns a preview and runs nothing. | |
| session | No | Session name (default 'default'). | |
| remember | No | With confirm: true, also stop asking for this kind of action from now on. Only when the person said so ("don't ask again"). The person can revoke it in LMCP or with set_always_allowed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||