Password master
Creare, elencare, rinominare ed eliminare password master con ambito. Gli esempi usano la modalità codice A2A. MCP espone la stessa modalità codice tramite lo strumentoexecute.
Funzioni
credentials.add
credentials.add(account_id: str, name: str, domain?: str | null, generate?: bool, value?: str | null, workspace_id?: str | null) -> MasterPassword
credentials.add.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | credential.manage | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | credential.manage |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | POST /v1/public/accounts/{account_id}/credentials |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
name | str | sì |
domain | str | null | no |
generate | bool | no |
value | str | null | no |
workspace_id | str | null | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
created_at | str | sì |
id | str | sì |
name | str | sì |
scope_id | str | sì |
scope_type | "account" | "workspace" | "domain" | sì |
updated_at | str | sì |
generated_secret | str | null | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
{
"request_id": "example",
"session_id": "session_123",
"code": "credentials.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\", domain=\"example.com\", generate=true, value=\"<string>\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "credentials.add",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
Esempio MCP
Esempio MCP
Richiesta:Risposta:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "credentials.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\", domain=\"example.com\", generate=true, value=\"<string>\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"credentials.add\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
credentials.delete
credentials.delete(account_id: str, credential_id: str) -> {}
credentials.delete.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | credential.manage | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | credential.manage |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | DELETE /v1/public/accounts/{account_id}/credentials/{credential_id} |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
credential_id | str | sì |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
result | {} | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
{
"request_id": "example",
"session_id": "session_123",
"code": "credentials.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": {}
},
"responses": [
{
"index": 0,
"function": "credentials.delete",
"status": "completed",
"result": {}
}
],
"complexity_score": 1
}
Esempio MCP
Esempio MCP
Richiesta:Risposta:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "credentials.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": {}\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"credentials.delete\",\n \"status\": \"completed\",\n \"result\": {}\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
credentials.list
credentials.list(account_id: str, page?: int, page_size?: int) -> Page[MasterPassword]
credentials.list.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | credential.view | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | credential.view |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | GET /v1/public/accounts/{account_id}/credentials |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
page | int | no |
page_size | int | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
items | [{"created_at": str, "id": str, "name": str, "scope_id": str, "scope_type": "account" | "workspace" | "domain", "updated_at": str}] | sì |
page | int | sì |
page_size | int | sì |
total | int | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
{
"request_id": "example",
"session_id": "session_123",
"code": "credentials.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "credentials.list",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
Esempio MCP
Esempio MCP
Richiesta:Risposta:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "credentials.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"credentials.list\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
credentials.update
credentials.update(account_id: str, credential_id: str, name: str) -> MasterPassword
credentials.update.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | credential.manage | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | credential.manage |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | PATCH /v1/public/accounts/{account_id}/credentials/{credential_id} |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
credential_id | str | sì |
name | str | sì |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
created_at | str | sì |
id | str | sì |
name | str | sì |
scope_id | str | sì |
scope_type | "account" | "workspace" | "domain" | sì |
updated_at | str | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
{
"request_id": "example",
"session_id": "session_123",
"code": "credentials.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "credentials.update",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
Esempio MCP
Esempio MCP
Richiesta:Risposta:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "credentials.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"credentials.update\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}