Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Roll P ExtractorNew to Visual Studio Code? Get it now.
Roll P Extractor

Roll P Extractor

Xelvian

|
1 install
| (0) | Free
Extracts the first <p> tag text and sends it to an external API, showing the JSON response in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🧩 Roll P Extractor

Roll P Extractor is a lightweight VS Code extension that extracts text from the first <p> tag in your current HTML file and sends it to an external API (like OpenAI). The formatted JSON response is displayed directly in the VS Code Output panel.


⚙️ Features

✅ Extracts text from the first <p> tag
✅ Sends content to a custom API (configurable)
✅ Displays cleanly formatted responses
✅ Works seamlessly with APIs like OpenAI, Gemini, Claude, etc.
✅ Full TypeScript support


🚀 Usage

  1. Open any HTML file containing a <p> tag.
  2. Write your prompt inside the <p> tag.
  3. Run the VS Code command: "Let Us Roll".
  4. View the response in the RUN JSON Output Panel.

🔧 Settings

You can configure the extension in your VS Code settings (Ctrl + ,) under RollP Extension Settings.

Example:

{
  "rollP.apiUrl": "https://api.openai.com/v1/chat/completions",
  "rollP.apiKey": "your_api_key_here",
  "rollP.apiKeyHeaderName": "Authorization",
  "rollP.model": "gpt-4.1"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft