Let the agent close the editor tabs it opens

Feature request for product/service

Tab

Describe the request

Feature request: let the agent close editor tabs The agent can open files in the editor (open_resource) but has no way to close them. After several editing sessions, tabs pile up. Please add a “close_resource” (or “close tabs”) tool so the agent can close the tabs it opened once the user confirms the changes are done.

Product: Agent (not Tab), sorry for the wrong field.

Hey @FlyedQc,

Right now the agent can open files in the editor panel but has no way to close them. There’s no close counterpart to that tool, and no setting that closes agent-opened tabs automatically.

In the meantime, you can clear them in one step: open the Command Palette and run Close All Open Files. It closes all file tabs in the editor panel, not just the ones the agent opened.

I’ve left this open as a feature request so others can vote on it.

Thanks Colin, the Command Palette tip works for now. Hope others vote for it!

Additional context — accessibility

I should have mentioned this in my first post: I currently have only one usable hand (injury), so I dictate almost everything by voice. My goal is to control the whole agent workflow with one hand — or ideally by voice alone.

Today, closing the tabs the agent opens is one of the few things that still forces me to use the mouse and keyboard. If the agent could close the tabs it opened (or the ones I tell it to close), my loop would be fully voice-driven: dictate the request, review, approve, done.

More broadly, anything that lets the agent manage the editor itself (open, close, focus, switch tabs) would make Cursor much more accessible for people with limited mobility. It was already a big moment for me to build and run a voice-recording tool on my PC just by talking to an agent. This would close the gap.