Description
Executes a single script cell from a PowerShell notebook and returns the aggregated output. Use this to run cells one at a time for troubleshooting or agentic workflow execution.
Overview
Runs the cell at CellIndex (0-based) in the notebook’s persistent PowerShell session. State (variables, loaded modules) persists between calls — use NotebooksResetSession first for a clean run.
Markdown cells are skipped with a short informational message. Error lines are prefixed [ERR], warnings with [WRN].
Example
{
"function_call": {
"name": "NotebooksRunCell",
"arguments": {
"NotebookId": "0ea6458d-50f9-4be0-8c0e-af4c9d982418",
"CellIndex": 2,
"Timeout": 30000
}
}
}
Example Output
CellIndex : 2
CellType : Script
HasErrors : False
Output : [+] Listener already active: https://+:443/
[+] Reusing existing build.
[+] BuildId: 8f3a1c2b-...
