share_lab
Add one or more users to a lab's share list by searching usernames, selecting matches, and confirming the action. Preserves existing shares.
Instructions
Share a lab with one or more users, added to whoever it's already shared with.
search is a case-insensitive substring match against every
EVE-NG username -- empty matches everyone. The literal word
"all" is a shortcut that bypasses searching/selecting
entirely and shares with every user that exists.
Otherwise: no matches cancels; more than 20 matches doesn't
list them (unwieldy) -- asks for a more specific search
instead; exactly one match proceeds directly, no prompt; more
than one (up to 20) is shown numbered, with an "all" option
at the end meaning every matched user, not necessarily
every user on the server. Pick via selection -- number(s),
exact username(s), or "all".
Existing shares are preserved -- this adds to whoever the lab
is already shared with, never replaces the list. Final
confirmation lists every user about to be newly added; reply
"accept" or "yes" (confirm) to apply -- same wording as
every delete tool.
Args: lab_path: Full path to the .unl lab file. search: Username fragment to search for, case-insensitive. Empty matches every user; "all" shares with everyone directly. selection: When multiple users matched, the number(s), exact username(s), or "all" (every matched user). confirm: Set true on the final call to actually apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | ||
| confirm | No | ||
| lab_path | Yes | ||
| selection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||