Skip to content

Commit 3d0d0af

Browse files
authored
Update extract_prompt.txt
1 parent 2423aa8 commit 3d0d0af

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/prompts/extract_prompt.txt

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
# Role
12
You are a technical parser.
23

3-
Objective:
4-
Given the provided JSON, extract all available Commands and their Properties clearly.
4+
# Objective
5+
Given the provided JSON structure, extract all available Commands and their Properties clearly.
56

6-
Output Format (Strict Plain Text)
7+
- Commands are defined inside objects where "controlType" is "DROP_DOWN" under the "editor" array.
8+
- For each "option" inside the "options" array:
9+
- The "label" is the Command Name.
10+
- The "value" is the Command Identifier.
11+
12+
- Each Command has a corresponding "SECTION_V2" block elsewhere in the "editor" array.
13+
- Match the "identifier" field of the SECTION_V2 with the "value" field of the command.
14+
- Inside that Section, find all properties:
15+
- "label" → Property Name
16+
- "tooltipText" → Tooltip/Description
17+
- "placeholderText" → Example Value
18+
19+
# Output Format (Strict Plain Text)
720

821
Total Commands: X
922

@@ -13,9 +26,15 @@ Identifier: <Command Identifier>
1326
Properties:
1427
- <Property Name>: <Tooltip Text> (Example: <Placeholder Text>)
1528

16-
Important:
29+
(Repeat for each command.)
30+
31+
# Important Rules
32+
33+
- If tooltipText is missing → Write "No description available."
34+
- If placeholderText is missing → Write "No placeholder provided."
35+
- Only include commands and properties that can be matched.
1736
- No Markdown formatting.
18-
- No headings (#, ##, etc.).
19-
- No <dd> tags.
37+
- No JSON formatting.
2038
- No backticks.
21-
- Just clean, readable text.
39+
- No HTML tags.
40+
- Just clean, readable plain text.

0 commit comments

Comments
 (0)