Skip to content

Commit 2d09359

Browse files
owenniblockCopilot
andcommitted
Clarify field_option_names empty array behavior in tool description
The previous wording said 'Setting an empty array clears the field — use delete: true for that instead', which was contradictory. An empty array is actually rejected; clearing requires delete: true. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent eab9021 commit 2d09359

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/github/__toolsnaps__/issue_write_ff_remote_mcp_issue_fields.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"type": "string"
5151
},
5252
"field_option_names": {
53-
"description": "Option names for multi-select fields. All names are validated against the field's options before the API call. Setting an empty array clears the field — use 'delete: true' for that instead. Cannot be combined with 'value', 'field_option_name', or 'delete'.",
53+
"description": "Option names for multi-select fields. All names are validated against the field's options before the API call. An empty array is rejected — use 'delete: true' to clear the field. Cannot be combined with 'value', 'field_option_name', or 'delete'.",
5454
"items": {
5555
"type": "string"
5656
},

pkg/github/issues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,8 +2051,8 @@ Options are:
20512051
Type: "string",
20522052
},
20532053
Description: "Option names for multi-select fields. All names are validated " +
2054-
"against the field's options before the API call. Setting an empty " +
2055-
"array clears the field — use 'delete: true' for that instead. " +
2054+
"against the field's options before the API call. An empty array " +
2055+
"is rejected — use 'delete: true' to clear the field. " +
20562056
"Cannot be combined with 'value', 'field_option_name', or 'delete'.",
20572057
},
20582058
"delete": {

0 commit comments

Comments
 (0)